Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008011/0.0008011, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0007987/0.0007987, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8797/0.8797, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OvervoltageProtection,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 3.938 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/2.092e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.002691/0.002711, allocations: 2.555 MB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009659/0.003677, allocations: 0.6894 MB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.003786, allocations: 7.938 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.003912, allocations: 43.62 kB / 327.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.004024, allocations: 83.16 kB / 328 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.004362, allocations: 111.7 kB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002888/0.004651, allocations: 374.3 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001577/0.004809, allocations: 60.89 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002988/0.005107, allocations: 215.5 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.005236, allocations: 127.6 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.571e-05/0.005271, allocations: 32 kB / 328.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.867e-05/0.00533, allocations: 32 kB / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.929e-05/0.005369, allocations: 71.73 kB / 329 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.193e-05/0.005441, allocations: 111.8 kB / 329.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.005729, allocations: 362.9 kB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.005732, allocations: 0 / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.005733, allocations: 0 / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.005739, allocations: 0 / 329.4 MB, free: 11.06 MB / 298.7 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.000892/0.006631, allocations: 0.5786 MB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.006675, allocations: 12.03 kB / 330 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.092e-05/0.006726, allocations: 54.73 kB / 330.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.006859, allocations: 44.73 kB / 330.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000298/0.007157, allocations: 202.2 kB / 330.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.007172, allocations: 16.88 kB / 330.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.204e-05/0.007204, allocations: 16.38 kB / 330.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.007642, allocations: 359.5 kB / 330.7 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.00765, allocations: 192 / 330.7 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.486e-05/0.007675, allocations: 16.12 kB / 330.7 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.007682, allocations: 4 kB / 330.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004925/0.008174, allocations: 269.8 kB / 331 MB, free: 9.422 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.009257, allocations: 0.9616 MB / 331.9 MB, free: 8.387 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000941/0.0102, allocations: 430.2 kB / 332.4 MB, free: 7.957 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.01042, allocations: 132.7 kB / 332.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.01044, allocations: 7.984 kB / 332.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.01046, allocations: 34.56 kB / 332.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.01046, allocations: 0 / 332.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.002303/0.01276, allocations: 0.947 MB / 333.5 MB, free: 6.816 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.01279, allocations: 59.41 kB / 333.5 MB, free: 6.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.01295, allocations: 221.7 kB / 333.8 MB, free: 6.523 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.01297, allocations: 29.7 kB / 333.8 MB, free: 6.488 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.694e-05/0.01304, allocations: 164.2 kB / 333.9 MB, free: 6.32 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.057e-05/0.01307, allocations: 43.59 kB / 334 MB, free: 6.277 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.842e-05/0.01313, allocations: 45.59 kB / 334 MB, free: 6.227 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.837e-05/0.01321, allocations: 326.8 kB / 334.3 MB, free: 5.898 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001825/0.01339, allocations: 107.9 kB / 334.5 MB, free: 5.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.01358, allocations: 121.6 kB / 334.6 MB, free: 5.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.01393, allocations: 228 kB / 334.8 MB, free: 5.441 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.01394, allocations: 4 kB / 334.8 MB, free: 5.438 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.001358/0.01529, allocations: 0.6384 MB / 335.4 MB, free: 4.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.01531, allocations: 4 kB / 335.4 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.01531, allocations: 0 / 335.4 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004245/0.01574, allocations: 224.6 kB / 335.7 MB, free: 4.562 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.057e-05/0.01583, allocations: 35.98 kB / 335.7 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003555/0.01938, allocations: 2.612 MB / 338.3 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001276/0.01951, allocations: 43.94 kB / 338.3 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.01953, allocations: 7.984 kB / 338.4 MB, free: 1.746 MB / 298.7 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.0001032/0.01963, allocations: 129.8 kB / 338.5 MB, free: 1.609 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.171e-05/0.01966, allocations: 23.84 kB / 338.5 MB, free: 1.586 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/0.01969, allocations: 25.77 kB / 338.5 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.01969, allocations: 0 / 338.5 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.01969, allocations: 0 / 338.5 MB, free: 1.566 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.0197, allocations: 4 kB / 338.5 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/0.01993, allocations: 264.5 kB / 338.8 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.01993, allocations: 3.938 kB / 338.8 MB, free: 1.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.271e-05/0.02001, allocations: 31.97 kB / 338.8 MB, free: 1.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003601/0.02037, allocations: 220.6 kB / 339 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.02039, allocations: 4 kB / 339 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.02377, allocations: 2.604 MB / 341.7 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.02377, allocations: 7.922 kB / 341.7 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.0254, allocations: 0.8396 MB / 342.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.929e-05/0.02543, allocations: 23.83 kB / 342.5 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.02545, allocations: 4 kB / 342.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.02558, allocations: 36.03 kB / 342.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.575e-05/0.02562, allocations: 11.92 kB / 342.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.02563, allocations: 7.984 kB / 342.6 MB, free: 13.33 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.02573, allocations: 161.2 kB / 342.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02573, allocations: 0 / 342.7 MB, free: 13.17 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.02605, allocations: 79.89 kB / 342.8 MB, free: 13.09 MB / 314.7 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.001789/0.02784, allocations: 1.388 MB / 344.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008022/0.02864, allocations: 440.8 kB / 344.6 MB, free: 11.24 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.02864, allocations: 7.938 kB / 344.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004962/0.02914, allocations: 314.6 kB / 345 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002611/0.0294, allocations: 36.72 kB / 345 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004748/0.03415, allocations: 3.318 MB / 348.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.364e-05/0.03424, allocations: 137.8 kB / 348.4 MB, free: 7.312 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.692e-05/0.03431, allocations: 13.48 kB / 348.5 MB, free: 7.297 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.59e-05/0.03438, allocations: 72.47 kB / 348.5 MB, free: 7.227 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.03438, allocations: 0 / 348.5 MB, free: 7.227 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.05674, allocations: 8.083 MB / 356.6 MB, free: 15.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.615/7.672, allocations: 3.094 kB / 356.6 MB, free: 15.27 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection_fmu --startTime=0 --stopTime=0.4 --stepSize=7.9968e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_OvervoltageProtection.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 9.336079368367791]