Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001716/0.001716, allocations: 116.8 kB / 19.17 MB, free: 3.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002069/0.002069, allocations: 214.6 kB / 22.13 MB, free: 0.9375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 230.2 MB / 255.2 MB, free: 15.4 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 63.84 kB / 374.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1064, allocations: 53.32 MB / 427.8 MB, free: 4.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009575/0.1159, allocations: 8.064 MB / 435.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2576/0.3735, allocations: 19.52 MB / 455.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.3746, allocations: 62.56 kB / 455.5 MB, free: 8.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002534/0.3772, allocations: 0.8665 MB / 456.3 MB, free: 8.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006428/0.3836, allocations: 1.812 MB / 458.2 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005895/0.3895, allocations: 1.348 MB / 459.5 MB, free: 7.355 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007127/0.3966, allocations: 3.307 MB / 462.8 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.397, allocations: 130.7 kB / 462.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001121/0.3981, allocations: 0.5606 MB / 463.5 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000705/0.3988, allocations: 0.5647 MB / 464.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.399, allocations: 41.12 kB / 464.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005271/0.4042, allocations: 1.445 MB / 465.5 MB, free: 6.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.4045, allocations: 174.5 kB / 465.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007999/0.4053, allocations: 0.6754 MB / 466.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003994/0.4093, allocations: 2.226 MB / 468.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4093, allocations: 2.188 kB / 468.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4093, allocations: 0 / 468.6 MB, free: 4.949 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.347e-05/0.4093, allocations: 4 kB / 468.6 MB, free: 4.945 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003255/0.4125, allocations: 2.064 MB / 470.7 MB, free: 3.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.4126, allocations: 9.625 kB / 470.7 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.4128, allocations: 206 kB / 470.9 MB, free: 3.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001904/0.4147, allocations: 1.373 MB / 472.3 MB, free: 2.676 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.4147, allocations: 20.78 kB / 472.3 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.535e-05/0.4148, allocations: 26.12 kB / 472.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009738/0.4158, allocations: 429.9 kB / 472.7 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.4158, allocations: 0 / 472.7 MB, free: 2.508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.472e-05/0.4159, allocations: 16.88 kB / 472.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.955e-05/0.4159, allocations: 8.938 kB / 472.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.417, allocations: 477.7 kB / 473.2 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.4196, allocations: 1.622 MB / 474.8 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008906/0.4205, allocations: 337.5 kB / 475.2 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006943/0.4212, allocations: 376 kB / 475.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01768/0.4389, allocations: 15.51 MB / 491.1 MB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006696/0.4396, allocations: 266.3 kB / 491.3 MB, free: 3.402 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.325e-06/0.4396, allocations: 0 / 491.3 MB, free: 3.402 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002281/0.4419, allocations: 0.8422 MB / 492.2 MB, free: 2.938 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.4419, allocations: 68.3 kB / 492.2 MB, free: 2.863 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.444, allocations: 1.457 MB / 493.7 MB, free: 2.047 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.444, allocations: 32.45 kB / 493.7 MB, free: 2.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007448/0.4448, allocations: 0.7225 MB / 494.4 MB, free: 1.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.4449, allocations: 97.94 kB / 494.5 MB, free: 1.285 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/0.4451, allocations: 130.6 kB / 494.7 MB, free: 1.211 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.4453, allocations: 326 kB / 495 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004693/0.4457, allocations: 167.1 kB / 495.1 MB, free: 0.8164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006095/0.4463, allocations: 360.8 kB / 495.5 MB, free: 488 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.4475, allocations: 0.5302 MB / 496 MB, free: 48 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.4475, allocations: 2.562 kB / 496 MB, free: 48 kB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001728/0.4492, allocations: 0.7608 MB / 496.8 MB, free: 15.69 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.4492, allocations: 12.05 kB / 496.8 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.451e-05/0.4493, allocations: 38.66 kB / 496.8 MB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003538/0.4497, allocations: 137.4 kB / 497 MB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004182/0.4501, allocations: 108.7 kB / 497.1 MB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007146/0.4508, allocations: 0.6789 MB / 497.8 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008429/0.4516, allocations: 74.72 kB / 497.8 MB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.986e-05/0.4517, allocations: 43.23 kB / 497.9 MB, free: 14.97 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005082/0.4522, allocations: 267.3 kB / 498.1 MB, free: 14.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002152/0.4524, allocations: 194.9 kB / 498.3 MB, free: 14.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.4543, allocations: 0.7448 MB / 499.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4543, allocations: 2.938 kB / 499.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.4543, allocations: 1.438 kB / 499.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.4543, allocations: 3.984 kB / 499.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002486/0.4568, allocations: 1.31 MB / 0.4887 GB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.687e-05/0.4569, allocations: 39.94 kB / 0.4887 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002499/0.4571, allocations: 39.95 kB / 0.4887 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002727/0.4574, allocations: 127.9 kB / 0.4889 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.837e-05/0.4574, allocations: 16 kB / 0.4889 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006582/0.4581, allocations: 0.6773 MB / 0.4895 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4581, allocations: 4.031 kB / 0.4895 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.4595, allocations: 0.7141 MB / 0.4902 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005392/0.4601, allocations: 293.9 kB / 0.4905 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.4602, allocations: 8 kB / 0.4905 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004355/0.4606, allocations: 24.86 kB / 0.4905 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.4608, allocations: 43.95 kB / 0.4906 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.247e-05/0.4608, allocations: 20 kB / 0.4906 GB, free: 11.12 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001305/0.4621, allocations: 0.9649 MB / 0.4915 GB, free: 10.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4621, allocations: 0 / 0.4915 GB, free: 10.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001039/0.4632, allocations: 323.6 kB / 0.4919 GB, free: 9.824 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009533/0.4641, allocations: 0.5788 MB / 0.4924 GB, free: 9.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.4655, allocations: 0.4966 MB / 0.4929 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4655, allocations: 4.125 kB / 0.4929 GB, free: 8.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.4663, allocations: 269.8 kB / 0.4932 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.4677, allocations: 319.9 kB / 0.4935 GB, free: 8.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00386/0.4715, allocations: 2.299 MB / 0.4957 GB, free: 5.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007807/0.4723, allocations: 1.145 MB / 0.4968 GB, free: 4.742 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.4725, allocations: 91.44 kB / 0.4969 GB, free: 4.652 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4725, allocations: 0 / 0.4969 GB, free: 4.652 MB / 398.1 MB Notification: Performance of Templates: time 0.03661/0.5091, allocations: 26.01 MB / 0.5223 GB, free: 10.68 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 9.355375427985564]