Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.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.001474/0.001474, allocations: 116.4 kB / 18.46 MB, free: 4.582 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.001474/0.001474, allocations: 211.3 kB / 21.42 MB, free: 1.625 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.554/1.554, 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.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.1.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.1.0_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 51.92 kB / 374.1 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 53.34 MB / 427.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.234/0.3437, allocations: 26.8 MB / 454.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03465/0.3784, allocations: 22.43 MB / 476.7 MB, free: 9.383 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007598/0.386, allocations: 268.8 kB / 477 MB, free: 9.199 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005801/0.3918, allocations: 1.786 MB / 478.8 MB, free: 7.938 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01317/0.4049, allocations: 3.248 MB / 482 MB, free: 5.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006434/0.4114, allocations: 1.628 MB / 483.6 MB, free: 3.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02196/0.4333, allocations: 12.88 MB / 496.5 MB, free: 11.33 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001377/0.4347, allocations: 0.5 MB / 497 MB, free: 10.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004261/0.439, allocations: 2.189 MB / 499.2 MB, free: 8.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003889/0.4428, allocations: 2.103 MB / 0.4896 GB, free: 6.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005481/0.4434, allocations: 140 kB / 0.4897 GB, free: 6.344 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006092/0.4495, allocations: 1.537 MB / 0.4912 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.4506, allocations: 0.5932 MB / 0.4918 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004691/0.4552, allocations: 2.624 MB / 0.4943 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.4685, allocations: 6.667 MB / 0.5008 GB, free: 10.87 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4685, allocations: 0 / 0.5008 GB, free: 10.87 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4685, allocations: 0 / 0.5008 GB, free: 10.87 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002892/0.4688, allocations: 0 / 0.5008 GB, free: 10.87 MB / 414.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.01229/0.4811, allocations: 6.934 MB / 0.5076 GB, free: 3.832 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.4811, allocations: 12.03 kB / 0.5076 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.4823, allocations: 0.7803 MB / 0.5084 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008148/0.4905, allocations: 4.663 MB / 0.5129 GB, free: 14.29 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.736e-05/0.4905, allocations: 66 kB / 0.513 GB, free: 14.22 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002927/0.4908, allocations: 103.9 kB / 0.5131 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002382/0.4932, allocations: 1.297 MB / 0.5144 GB, free: 12.81 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.4932, allocations: 3.984 kB / 0.5144 GB, free: 12.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001262/0.4934, allocations: 43.92 kB / 0.5144 GB, free: 12.76 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-05/0.4934, allocations: 39.98 kB / 0.5145 GB, free: 12.72 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002684/0.4961, allocations: 1.48 MB / 0.5159 GB, free: 11.24 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01143/0.5075, allocations: 5.621 MB / 0.5214 GB, free: 5.527 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.5095, allocations: 0.8646 MB / 0.5222 GB, free: 4.652 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/0.5112, allocations: 1.053 MB / 0.5233 GB, free: 3.605 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06323/0.5744, allocations: 61.07 MB / 0.5829 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001102/0.5755, allocations: 0.5538 MB / 0.5834 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=85): time 3.828e-06/0.5755, allocations: 0 / 0.5834 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85): time 0.004015/0.5796, allocations: 1.914 MB / 0.5853 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.5796, allocations: 63.95 kB / 0.5854 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008097/0.5877, allocations: 5.594 MB / 0.5908 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002199/0.5879, allocations: 41.7 kB / 0.5909 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002856/0.5908, allocations: 2.965 MB / 0.5938 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004799/0.5913, allocations: 309.4 kB / 0.5941 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000602/0.5919, allocations: 431 kB / 0.5945 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.592, allocations: 301.1 kB / 0.5948 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009399/0.593, allocations: 403.8 kB / 0.5952 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.5944, allocations: 1.091 MB / 0.5962 GB, free: 56 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00249/0.5969, allocations: 1.615 MB / 0.5978 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/0.5969, allocations: 8 kB / 0.5978 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004142/0.601, allocations: 2.238 MB / 0.6 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.02e-05/0.6011, allocations: 12 kB / 0.6 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002115/0.6013, allocations: 167.9 kB / 0.6002 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.388e-05/0.6013, allocations: 36.06 kB / 0.6002 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.6026, allocations: 359.4 kB / 0.6005 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-05/0.6026, allocations: 49.75 kB / 0.6006 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/0.6047, allocations: 194.7 kB / 0.6008 GB, free: 11.06 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/0.6049, allocations: 128 kB / 0.6009 GB, free: 10.93 MB / 0.5137 GB 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.001543/0.6064, allocations: 0.7121 MB / 0.6016 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001134/0.6075, allocations: 0.7492 MB / 0.6023 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004908/0.6124, allocations: 2.149 MB / 0.6044 GB, free: 7.297 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.6125, allocations: 9.312 kB / 0.6044 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.6125, allocations: 0 / 0.6044 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.6125, allocations: 7.922 kB / 0.6044 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006589/0.6191, allocations: 3.607 MB / 0.608 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001869/0.6193, allocations: 140 kB / 0.6081 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007896/0.62, allocations: 151.8 kB / 0.6082 GB, free: 3.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.6201, allocations: 7.984 kB / 0.6082 GB, free: 3.312 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.722e-05/0.6202, allocations: 56 kB / 0.6083 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.708e-06/0.6202, allocations: 4 kB / 0.6083 GB, free: 3.254 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.6202, allocations: 4.875 kB / 0.6083 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004366/0.6245, allocations: 2.196 MB / 0.6104 GB, free: 1.027 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/0.6263, allocations: 0.8553 MB / 0.6113 GB, free: 152 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000607/0.6269, allocations: 16 kB / 0.6113 GB, free: 136 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.628, allocations: 35.95 kB / 0.6113 GB, free: 100 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.6282, allocations: 92.5 kB / 0.6114 GB, free: 8 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.6284, allocations: 71.98 kB / 0.6115 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006019/0.6344, allocations: 3.608 MB / 0.615 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/0.6344, allocations: 3.938 kB / 0.615 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003015/0.6374, allocations: 1.092 MB / 0.6161 GB, free: 11.26 MB / 0.5294 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.00191/0.6393, allocations: 1.187 MB / 0.6172 GB, free: 10.06 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002624/0.642, allocations: 1.358 MB / 0.6186 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.642, allocations: 0 / 0.6186 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.6432, allocations: 0.7433 MB / 0.6193 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005406/0.6486, allocations: 1.183 MB / 0.6204 GB, free: 6.691 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2062/0.8548, allocations: 8.358 MB / 0.6286 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002308/0.8571, allocations: 2.592 MB / 0.6311 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007438/0.8578, allocations: 294.8 kB / 0.6314 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.843e-06/0.8578, allocations: 0 / 0.6314 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.09754/0.9554, allocations: 70.87 MB / 0.7006 GB, free: 134.1 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.759407739009475]