Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") translateModel(Modelica.Electrical.Analog.Examples.OvervoltageProtection,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|CL.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 114.6 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 194.8 kB / 18 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 47.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4157, allocations: 49.44 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OvervoltageProtection): time 0.004634/0.4204, allocations: 2.705 MB / 403.4 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.4218, allocations: 0.67 MB / 404.1 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.4219, allocations: 4 kB / 404.1 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002135/0.4221, allocations: 43.56 kB / 404.2 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001603/0.4223, allocations: 79.28 kB / 404.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.4227, allocations: 103.8 kB / 404.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004249/0.4231, allocations: 358.5 kB / 404.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002641/0.4234, allocations: 84.7 kB / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.4237, allocations: 143.5 kB / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.4239, allocations: 163.3 kB / 405.1 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.424, allocations: 28 kB / 405.1 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.207e-05/0.4241, allocations: 36 kB / 405.1 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.823e-05/0.4241, allocations: 71.73 kB / 405.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.4243, allocations: 147.3 kB / 405.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004001/0.4247, allocations: 340 kB / 405.7 MB, free: 3.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.4247, allocations: 4 kB / 405.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.907e-06/0.4247, allocations: 0 / 405.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.4248, allocations: 0 / 405.7 MB, free: 3.891 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.001647/0.4264, allocations: 0.6393 MB / 406.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.4265, allocations: 8.031 kB / 406.3 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.016e-05/0.4266, allocations: 28.66 kB / 406.4 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004345/0.427, allocations: 264.5 kB / 406.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.427, allocations: 16.81 kB / 406.6 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.255e-05/0.4271, allocations: 16.38 kB / 406.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007049/0.4278, allocations: 302.9 kB / 406.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.4278, allocations: 0 / 406.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.4279, allocations: 12 kB / 406.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.4279, allocations: 7.938 kB / 407 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008163/0.4287, allocations: 273.5 kB / 407.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.4305, allocations: 1.066 MB / 408.3 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001976/0.4325, allocations: 444.6 kB / 408.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003924/0.4329, allocations: 140.8 kB / 408.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.817e-05/0.4329, allocations: 0 / 408.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.433, allocations: 38.56 kB / 408.9 MB, free: 472 kB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.502e-06/0.433, allocations: 4 kB / 408.9 MB, free: 468 kB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.005143/0.4381, allocations: 1.014 MB / 409.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/0.4382, allocations: 51.41 kB / 410 MB, free: 15.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002675/0.4385, allocations: 216.2 kB / 410.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.4385, allocations: 29.69 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.4386, allocations: 160.1 kB / 410.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.837e-05/0.4387, allocations: 51.3 kB / 410.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.4388, allocations: 41.69 kB / 410.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.439, allocations: 326.8 kB / 410.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003534/0.4393, allocations: 103.9 kB / 410.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.4397, allocations: 133.5 kB / 411 MB, free: 14.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006591/0.4404, allocations: 228.1 kB / 411.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4404, allocations: 4 kB / 411.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.002792/0.4432, allocations: 0.6305 MB / 411.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.815e-05/0.4433, allocations: 11.94 kB / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.4433, allocations: 3.984 kB / 411.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007693/0.4441, allocations: 220.6 kB / 412.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.4443, allocations: 43.86 kB / 412.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007339/0.4516, allocations: 2.735 MB / 414.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003308/0.452, allocations: 39.84 kB / 414.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.733e-05/0.452, allocations: 7.984 kB / 414.9 MB, free: 10.2 MB / 334.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.0002551/0.4523, allocations: 138.4 kB / 415.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.073e-05/0.4524, allocations: 15.81 kB / 415.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.011e-05/0.4525, allocations: 25.52 kB / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.4525, allocations: 4 kB / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.4525, allocations: 0 / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.4525, allocations: 0 / 415.1 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005269/0.453, allocations: 333.2 kB / 415.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.453, allocations: 0 / 415.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.4532, allocations: 27.92 kB / 415.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000708/0.4539, allocations: 220.7 kB / 415.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.454, allocations: 7.984 kB / 415.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007026/0.461, allocations: 2.735 MB / 418.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4611, allocations: 0 / 418.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.4644, allocations: 0.8376 MB / 419.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.4645, allocations: 100.9 kB / 419.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.708e-05/0.4645, allocations: 11.98 kB / 419.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.4648, allocations: 23.98 kB / 419.4 MB, free: 5.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/0.4649, allocations: 15.98 kB / 419.4 MB, free: 5.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.4649, allocations: 7.984 kB / 419.4 MB, free: 5.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001592/0.4651, allocations: 153.9 kB / 419.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4651, allocations: 8 kB / 419.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005043/0.4656, allocations: 75.84 kB / 419.6 MB, free: 5.238 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.0001928/0.4658, allocations: 103.2 kB / 419.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.4676, allocations: 454.3 kB / 420.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4676, allocations: 0 / 420.2 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001083/0.4687, allocations: 326.4 kB / 420.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004092/0.4691, allocations: 44.58 kB / 420.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.4706, allocations: 0.5565 MB / 421.1 MB, free: 3.715 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.471, allocations: 0.7359 MB / 421.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.946e-05/0.4711, allocations: 17.55 kB / 421.9 MB, free: 2.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.608e-05/0.4711, allocations: 15.44 kB / 421.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4711, allocations: 0 / 421.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of Templates: time 0.01005/0.4812, allocations: 4.95 MB / 426.8 MB, free: 13.98 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OvervoltageProtection/OvervoltageProtection.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OvervoltageProtection.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches