Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.005549/0.005549, allocations: 114 kB / 21.97 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001352/0.001352, allocations: 212.3 kB / 25.28 MB, free: 3.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.343/1.343, allocations: 207.6 MB / 236.1 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 43.94 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2648, allocations: 49.16 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.003379/0.2682, allocations: 2.688 MB / 399.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001149/0.2693, allocations: 0.7224 MB / 400.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.2695, allocations: 8.469 kB / 400.6 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.2697, allocations: 44.22 kB / 400.6 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.2698, allocations: 79.97 kB / 400.7 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.2702, allocations: 100.5 kB / 400.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.2705, allocations: 360.3 kB / 401.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.2707, allocations: 72.48 kB / 401.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002187/0.2709, allocations: 149.7 kB / 401.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2711, allocations: 158.3 kB / 401.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.138e-05/0.2712, allocations: 30.16 kB / 401.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.251e-05/0.2712, allocations: 30.34 kB / 401.6 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.223e-05/0.2713, allocations: 65.72 kB / 401.6 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.2715, allocations: 146.1 kB / 401.8 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003986/0.2718, allocations: 348.8 kB / 402.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2719, allocations: 0 / 402.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2719, allocations: 0 / 402.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.2719, allocations: 1.156 kB / 402.1 MB, free: 5.824 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001304/0.2732, allocations: 0.5737 MB / 402.7 MB, free: 5.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.2732, allocations: 13.7 kB / 402.7 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.8e-05/0.2732, allocations: 9.656 kB / 402.7 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.2733, allocations: 58.95 kB / 402.8 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.326e-05/0.2733, allocations: 30.56 kB / 402.8 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003049/0.2736, allocations: 201.4 kB / 403 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.2737, allocations: 12.84 kB / 403 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.2737, allocations: 21.88 kB / 403 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006172/0.2743, allocations: 301.8 kB / 403.3 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2743, allocations: 7.875 kB / 403.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.779e-05/0.2744, allocations: 6.156 kB / 403.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.2744, allocations: 5.594 kB / 403.3 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007363/0.2751, allocations: 265.4 kB / 403.6 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.2765, allocations: 1.033 MB / 404.6 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.2783, allocations: 421.3 kB / 405 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003866/0.2787, allocations: 137.3 kB / 405.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.2788, allocations: 1.703 kB / 405.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.2788, allocations: 44.62 kB / 405.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.843e-06/0.2788, allocations: 3.984 kB / 405.2 MB, free: 4 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.004847/0.2836, allocations: 0.9411 MB / 406.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.2837, allocations: 58.03 kB / 406.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002146/0.2839, allocations: 216 kB / 406.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.2839, allocations: 27.2 kB / 406.5 MB, free: 3.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.691e-05/0.284, allocations: 158.9 kB / 406.6 MB, free: 3.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.284, allocations: 53.73 kB / 406.7 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.822e-05/0.2841, allocations: 34.17 kB / 406.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.578e-05/0.2842, allocations: 331.2 kB / 407 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003409/0.2845, allocations: 108.6 kB / 407.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.2848, allocations: 127.7 kB / 407.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006216/0.2855, allocations: 233 kB / 407.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2855, allocations: 0 / 407.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002718/0.2882, allocations: 0.631 MB / 408.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.2882, allocations: 8.562 kB / 408.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2882, allocations: 1.656 kB / 408.1 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007859/0.289, allocations: 219.1 kB / 408.3 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.2892, allocations: 37.19 kB / 408.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006464/0.2957, allocations: 2.643 MB / 411 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003021/0.296, allocations: 38.45 kB / 411 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.296, allocations: 4.406 kB / 411.1 MB, free: 0.9219 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001437/0.2961, allocations: 135.6 kB / 411.2 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.2962, allocations: 24.94 kB / 411.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.37e-05/0.2962, allocations: 26.38 kB / 411.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.2962, allocations: 6.656 kB / 411.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2962, allocations: 0 / 411.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.2962, allocations: 0 / 411.2 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003349/0.2966, allocations: 308.1 kB / 411.5 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2966, allocations: 0 / 411.5 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001496/0.2967, allocations: 30.28 kB / 411.6 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005957/0.2973, allocations: 223.1 kB / 411.8 MB, free: 356 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.2973, allocations: 5.219 kB / 411.8 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006398/0.3037, allocations: 2.63 MB / 414.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3037, allocations: 0 / 414.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003148/0.3069, allocations: 0.8456 MB / 415.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.3069, allocations: 25.61 kB / 415.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.443e-05/0.307, allocations: 1.188 kB / 415.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002912/0.3073, allocations: 39.38 kB / 415.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.3073, allocations: 6.328 kB / 415.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.3073, allocations: 7.797 kB / 415.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001573/0.3075, allocations: 154.9 kB / 415.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3075, allocations: 1.5 kB / 415.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004834/0.308, allocations: 85.44 kB / 415.6 MB, free: 13.75 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (CL.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003552/0.3115, allocations: 1.382 MB / 417 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.3131, allocations: 447.9 kB / 417.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3131, allocations: 0 / 417.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.3142, allocations: 320.4 kB / 417.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003791/0.3146, allocations: 39.16 kB / 417.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008555/0.3231, allocations: 3.341 MB / 421.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.3235, allocations: 0.7494 MB / 421.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.256e-05/0.3236, allocations: 15.97 kB / 421.9 MB, free: 9.379 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3237, allocations: 67.06 kB / 421.9 MB, free: 9.32 MB / 334.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3237, allocations: 0 / 421.9 MB, free: 9.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03771/0.3614, allocations: 7.515 MB / 429.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.5, allocations: 8.016 kB / 429.4 MB, free: 2.242 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.995488810993265]