Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.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.001822/0.001822, allocations: 116 kB / 18.45 MB, free: 4.562 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.002304/0.002304, allocations: 213.6 kB / 21.42 MB, free: 1.605 MB / 14.72 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 1.549/1.549, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 47.92 kB / 374.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1078, allocations: 53.34 MB / 427.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.2474/0.3552, allocations: 8.061 MB / 435.5 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02201/0.3772, allocations: 19.53 MB / 455.1 MB, free: 9.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/0.3791, allocations: 97.41 kB / 455.2 MB, free: 9.523 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003268/0.3824, allocations: 0.8565 MB / 456 MB, free: 9.078 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008371/0.3908, allocations: 1.815 MB / 457.8 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006719/0.3975, allocations: 1.342 MB / 459.2 MB, free: 7.332 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007484/0.405, allocations: 3.308 MB / 462.5 MB, free: 6.117 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004571/0.4054, allocations: 133.6 kB / 462.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.4067, allocations: 0.5831 MB / 463.2 MB, free: 5.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007691/0.4075, allocations: 0.5591 MB / 463.8 MB, free: 5.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.4076, allocations: 45.41 kB / 463.8 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005942/0.4135, allocations: 1.444 MB / 465.2 MB, free: 5.078 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003087/0.4139, allocations: 177.1 kB / 465.4 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001185/0.415, allocations: 0.677 MB / 466.1 MB, free: 4.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006064/0.4211, allocations: 2.217 MB / 468.3 MB, free: 3.219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.4211, allocations: 4 kB / 468.3 MB, free: 3.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.616e-06/0.4211, allocations: 0 / 468.3 MB, free: 3.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.024e-05/0.4212, allocations: 1.344 kB / 468.3 MB, free: 3.215 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.004513/0.4257, allocations: 2.077 MB / 470.4 MB, free: 1.605 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.4257, allocations: 10.03 kB / 470.4 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.4261, allocations: 201.5 kB / 470.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002365/0.4284, allocations: 1.36 MB / 472 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/0.4285, allocations: 19.03 kB / 472 MB, free: 416 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.4286, allocations: 29.36 kB / 472 MB, free: 404 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.4296, allocations: 437.1 kB / 472.4 MB, free: 144 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.4296, allocations: 7.875 kB / 472.4 MB, free: 136 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.4296, allocations: 10.59 kB / 472.5 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.4297, allocations: 11.31 kB / 472.5 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.4309, allocations: 476.5 kB / 472.9 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00328/0.4341, allocations: 1.618 MB / 474.5 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.4352, allocations: 342.7 kB / 474.9 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007828/0.4359, allocations: 370.5 kB / 475.2 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0183/0.4542, allocations: 15.53 MB / 490.8 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006877/0.4549, allocations: 259.1 kB / 491 MB, free: 14.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.335e-06/0.4549, allocations: 0 / 491 MB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002345/0.4573, allocations: 0.8456 MB / 491.9 MB, free: 13.67 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.4573, allocations: 59.34 kB / 491.9 MB, free: 13.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00184/0.4592, allocations: 1.459 MB / 493.4 MB, free: 12.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.4592, allocations: 29.7 kB / 493.4 MB, free: 12.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006859/0.4599, allocations: 0.7232 MB / 494.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.46, allocations: 107.2 kB / 494.2 MB, free: 11.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.4603, allocations: 134.1 kB / 494.4 MB, free: 11.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.4605, allocations: 326 kB / 494.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004789/0.4609, allocations: 157 kB / 494.8 MB, free: 10.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000675/0.4616, allocations: 359.4 kB / 495.2 MB, free: 10.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001143/0.4628, allocations: 0.5256 MB / 495.7 MB, free: 9.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.4628, allocations: 8 kB / 495.7 MB, free: 9.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001763/0.4645, allocations: 0.7524 MB / 496.5 MB, free: 8.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.4646, allocations: 12.16 kB / 496.5 MB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.28e-05/0.4646, allocations: 36 kB / 496.5 MB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003583/0.465, allocations: 148.7 kB / 496.7 MB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004241/0.4654, allocations: 107.8 kB / 496.8 MB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006917/0.4661, allocations: 0.6779 MB / 497.5 MB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008631/0.467, allocations: 72.22 kB / 497.5 MB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.372e-05/0.467, allocations: 32 kB / 497.6 MB, free: 7.684 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.0004516/0.4675, allocations: 269.7 kB / 497.8 MB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002258/0.4677, allocations: 202.8 kB / 498 MB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.4696, allocations: 0.7316 MB / 498.8 MB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4696, allocations: 8 kB / 498.8 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4696, allocations: 0 / 498.8 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.4696, allocations: 1.188 kB / 498.8 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002641/0.4723, allocations: 1.311 MB / 0.4884 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.995e-05/0.4723, allocations: 43.94 kB / 0.4884 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.4726, allocations: 39.95 kB / 0.4884 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002713/0.4728, allocations: 128.9 kB / 0.4886 GB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.187e-05/0.4729, allocations: 27.92 kB / 0.4886 GB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006998/0.4736, allocations: 0.6578 MB / 0.4892 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4736, allocations: 1.875 kB / 0.4892 GB, free: 4.164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.4752, allocations: 0.7218 MB / 0.4899 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006109/0.4758, allocations: 287.7 kB / 0.4902 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.476, allocations: 8 kB / 0.4902 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/0.4764, allocations: 31.95 kB / 0.4902 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.4765, allocations: 35.91 kB / 0.4903 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.758e-05/0.4766, allocations: 27.98 kB / 0.4903 GB, free: 3.012 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.4779, allocations: 0.9571 MB / 0.4912 GB, free: 2.035 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4779, allocations: 4 kB / 0.4912 GB, free: 2.031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001072/0.479, allocations: 327.6 kB / 0.4916 GB, free: 1.711 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.001002/0.48, allocations: 0.5777 MB / 0.4921 GB, free: 1.133 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001392/0.4814, allocations: 0.5004 MB / 0.4926 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4814, allocations: 4 kB / 0.4926 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006878/0.4821, allocations: 275.4 kB / 0.4929 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.4836, allocations: 310.2 kB / 0.4932 GB, free: 40 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004319/0.4879, allocations: 2.287 MB / 0.4954 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008468/0.4888, allocations: 1.145 MB / 0.4965 GB, free: 12.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001943/0.489, allocations: 91.44 kB / 0.4966 GB, free: 12.44 MB / 414.1 MB Notification: Performance of SimCode: time 2.685e-06/0.489, allocations: 0 / 0.4966 GB, free: 12.44 MB / 414.1 MB Notification: Performance of Templates: time 0.06659/0.5556, allocations: 25.99 MB / 0.522 GB, free: 2.512 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.835009501985041]