Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 120.8 kB / 18.46 MB, free: 4.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 190.9 kB / 21.4 MB, free: 1.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 59.89 kB / 366.8 MB, free: 428 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09486, allocations: 52.13 MB / 418.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02697/0.1218, allocations: 26.8 MB / 445.7 MB, free: 1.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2356/0.3575, allocations: 22.4 MB / 468.1 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005545/0.363, allocations: 175.9 kB / 468.3 MB, free: 5.801 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004467/0.3675, allocations: 1.785 MB / 470.1 MB, free: 5.059 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01171/0.3792, allocations: 3.256 MB / 473.4 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005988/0.3852, allocations: 1.621 MB / 475 MB, free: 2.707 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02046/0.4056, allocations: 12.71 MB / 487.7 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001232/0.4069, allocations: 0.5141 MB / 488.2 MB, free: 13.19 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003918/0.4108, allocations: 2.113 MB / 490.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003561/0.4143, allocations: 2.096 MB / 492.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003927/0.4147, allocations: 135.9 kB / 492.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005646/0.4204, allocations: 1.541 MB / 494.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006733/0.4211, allocations: 0.5992 MB / 494.7 MB, free: 9.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003627/0.4247, allocations: 2.626 MB / 497.3 MB, free: 7.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01045/0.4351, allocations: 6.659 MB / 0.4922 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4351, allocations: 0 / 0.4922 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4351, allocations: 3.938 kB / 0.4922 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001245/0.4353, allocations: 0 / 0.4922 GB, free: 0.7695 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01032/0.4456, allocations: 6.934 MB / 0.4989 GB, free: 9.73 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.4456, allocations: 8.031 kB / 0.4989 GB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009893/0.4466, allocations: 0.7764 MB / 0.4997 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006999/0.4536, allocations: 4.663 MB / 0.5043 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.959e-05/0.4537, allocations: 66 kB / 0.5043 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/0.4539, allocations: 99.94 kB / 0.5044 GB, free: 4.031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002551/0.4565, allocations: 1.301 MB / 0.5057 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.4565, allocations: 0 / 0.5057 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.4566, allocations: 36 kB / 0.5057 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.251e-05/0.4567, allocations: 35.98 kB / 0.5058 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002733/0.4594, allocations: 1.488 MB / 0.5072 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01115/0.4706, allocations: 5.621 MB / 0.5127 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001894/0.4725, allocations: 0.8686 MB / 0.5135 GB, free: 10.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001754/0.4742, allocations: 1.055 MB / 0.5146 GB, free: 9.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06543/0.5396, allocations: 59.82 MB / 0.573 GB, free: 5.516 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.5408, allocations: 0.5521 MB / 0.5735 GB, free: 4.949 MB / 478.1 MB Notification: Performance of pre-optimization done (n=85): time 2.886e-06/0.5408, allocations: 0 / 0.5735 GB, free: 4.949 MB / 478.1 MB Notification: Performance of matching and sorting (n=85): time 0.00397/0.5447, allocations: 1.914 MB / 0.5754 GB, free: 3.027 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.5448, allocations: 71.94 kB / 0.5755 GB, free: 2.945 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007703/0.5525, allocations: 5.582 MB / 0.5809 GB, free: 13.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/0.5527, allocations: 41.7 kB / 0.581 GB, free: 13.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002938/0.5556, allocations: 2.965 MB / 0.5839 GB, free: 10.37 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004423/0.556, allocations: 309.4 kB / 0.5842 GB, free: 10.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006218/0.5567, allocations: 427 kB / 0.5846 GB, free: 9.641 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5568, allocations: 305.1 kB / 0.5848 GB, free: 9.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009339/0.5577, allocations: 407.8 kB / 0.5852 GB, free: 8.941 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001511/0.5592, allocations: 1.087 MB / 0.5863 GB, free: 7.52 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002578/0.5618, allocations: 1.615 MB / 0.5879 GB, free: 5.574 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.4e-05/0.5618, allocations: 8 kB / 0.5879 GB, free: 5.566 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00403/0.5659, allocations: 2.234 MB / 0.5901 GB, free: 3.324 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.5659, allocations: 16 kB / 0.5901 GB, free: 3.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002132/0.5661, allocations: 171 kB / 0.5902 GB, free: 3.145 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.899e-05/0.5662, allocations: 35.94 kB / 0.5903 GB, free: 3.109 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.5674, allocations: 359.4 kB / 0.5906 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.637e-05/0.5674, allocations: 43.86 kB / 0.5907 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001793/0.5692, allocations: 202.5 kB / 0.5909 GB, free: 2.516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002036/0.5694, allocations: 124.8 kB / 0.591 GB, free: 2.395 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001407/0.5709, allocations: 0.7043 MB / 0.5917 GB, free: 1.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008191/0.5717, allocations: 0.753 MB / 0.5924 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004694/0.5764, allocations: 2.152 MB / 0.5945 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.5764, allocations: 15.88 kB / 0.5945 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.5764, allocations: 0 / 0.5945 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.5764, allocations: 3.984 kB / 0.5945 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005751/0.5821, allocations: 3.596 MB / 0.598 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001778/0.5823, allocations: 141.1 kB / 0.5982 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008948/0.5832, allocations: 159.8 kB / 0.5983 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.5832, allocations: 0 / 0.5983 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.5834, allocations: 63.98 kB / 0.5984 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.5834, allocations: 7.938 kB / 0.5984 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5834, allocations: 0 / 0.5984 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003597/0.587, allocations: 2.189 MB / 0.6005 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/0.5884, allocations: 0.8592 MB / 0.6014 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004547/0.5888, allocations: 16 kB / 0.6014 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.5899, allocations: 32.59 kB / 0.6014 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.5901, allocations: 96.48 kB / 0.6015 GB, free: 7.469 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/0.5902, allocations: 71.98 kB / 0.6016 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005036/0.5953, allocations: 3.612 MB / 0.6051 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5953, allocations: 0 / 0.6051 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00242/0.5977, allocations: 1.077 MB / 0.6061 GB, free: 2.738 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * 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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001775/0.5995, allocations: 1.19 MB / 0.6073 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002543/0.602, allocations: 1.358 MB / 0.6086 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.602, allocations: 0 / 0.6086 GB, free: 140 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.6032, allocations: 0.7433 MB / 0.6094 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004868/0.6081, allocations: 1.18 MB / 0.6105 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01239/0.6205, allocations: 8.374 MB / 0.6187 GB, free: 5.746 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002254/0.6228, allocations: 2.592 MB / 0.6212 GB, free: 3.129 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006909/0.6234, allocations: 291.4 kB / 0.6215 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of SimCode: time 1.102e-06/0.6234, allocations: 0 / 0.6215 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of Templates: time 0.2725/0.8959, allocations: 70.85 MB / 0.6907 GB, free: 154.4 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.501400873996317]