Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.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.001491/0.001491, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.001503/0.001503, allocations: 209.9 kB / 24.54 MB, free: 4.055 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.431/1.431, allocations: 230.3 MB / 258 MB, free: 8.242 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.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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002934/0.002934, allocations: 63.89 kB / 378.8 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2909, allocations: 53.35 MB / 432.1 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02865/0.3196, allocations: 26.83 MB / 458.9 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03033/0.3499, allocations: 22.44 MB / 481.4 MB, free: 5.656 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004692/0.3546, allocations: 273.1 kB / 481.6 MB, free: 5.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005385/0.36, allocations: 1.785 MB / 483.4 MB, free: 3.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01231/0.3723, allocations: 3.333 MB / 486.8 MB, free: 240 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005261/0.3775, allocations: 1.64 MB / 488.4 MB, free: 14.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0212/0.3987, allocations: 12.9 MB / 0.4895 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001212/0.3999, allocations: 0.5082 MB / 0.49 GB, free: 1.109 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00337/0.4033, allocations: 2.189 MB / 0.4922 GB, free: 14.91 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002886/0.4062, allocations: 2.107 MB / 0.4942 GB, free: 12.79 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004257/0.4066, allocations: 132 kB / 0.4944 GB, free: 12.66 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004446/0.4111, allocations: 1.537 MB / 0.4959 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000763/0.4118, allocations: 0.5932 MB / 0.4964 GB, free: 10.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003574/0.4154, allocations: 2.624 MB / 0.499 GB, free: 7.883 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.4257, allocations: 6.675 MB / 0.5055 GB, free: 1.176 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.4257, allocations: 0 / 0.5055 GB, free: 1.176 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4257, allocations: 0 / 0.5055 GB, free: 1.176 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001747/0.4258, allocations: 4 kB / 0.5055 GB, free: 1.172 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.01129/0.4371, allocations: 6.855 MB / 0.5122 GB, free: 10.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.4372, allocations: 8.031 kB / 0.5122 GB, free: 10.22 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009809/0.4382, allocations: 0.7764 MB / 0.513 GB, free: 9.441 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007957/0.4461, allocations: 4.371 MB / 0.5173 GB, free: 4.949 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.461e-05/0.4462, allocations: 66 kB / 0.5173 GB, free: 4.883 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002478/0.4464, allocations: 111.8 kB / 0.5174 GB, free: 4.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/0.449, allocations: 1.309 MB / 0.5187 GB, free: 3.449 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.449, allocations: 0 / 0.5187 GB, free: 3.449 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.4491, allocations: 43.92 kB / 0.5188 GB, free: 3.406 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.155e-05/0.4491, allocations: 35.98 kB / 0.5188 GB, free: 3.371 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002756/0.4519, allocations: 1.492 MB / 0.5202 GB, free: 1.875 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01038/0.4623, allocations: 5.564 MB / 0.5257 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.4641, allocations: 0.8796 MB / 0.5265 GB, free: 11.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.4657, allocations: 1.059 MB / 0.5276 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2352/0.7009, allocations: 27.17 MB / 0.5541 GB, free: 95.77 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009622/0.7019, allocations: 0.5572 MB / 0.5546 GB, free: 95.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 3.216e-06/0.7019, allocations: 0 / 0.5546 GB, free: 95.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.002951/0.7049, allocations: 1.913 MB / 0.5565 GB, free: 94.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.7049, allocations: 60.06 kB / 0.5566 GB, free: 94.28 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/0.7098, allocations: 5.592 MB / 0.562 GB, free: 88.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001089/0.7099, allocations: 41.7 kB / 0.5621 GB, free: 88.69 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001623/0.7116, allocations: 2.968 MB / 0.565 GB, free: 85.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.7118, allocations: 306.3 kB / 0.5653 GB, free: 85.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.7122, allocations: 427 kB / 0.5657 GB, free: 85.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.7122, allocations: 301.1 kB / 0.566 GB, free: 84.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007643/0.713, allocations: 407.5 kB / 0.5663 GB, free: 84.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009438/0.7139, allocations: 1.094 MB / 0.5674 GB, free: 83.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.7157, allocations: 1.611 MB / 0.569 GB, free: 81.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/0.7157, allocations: 8 kB / 0.569 GB, free: 81.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003019/0.7187, allocations: 2.244 MB / 0.5712 GB, free: 78.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.7187, allocations: 12 kB / 0.5712 GB, free: 78.87 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/0.7189, allocations: 160 kB / 0.5713 GB, free: 78.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.936e-05/0.7189, allocations: 32 kB / 0.5714 GB, free: 78.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.72, allocations: 363.3 kB / 0.5717 GB, free: 78.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.831e-05/0.72, allocations: 47.84 kB / 0.5718 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.7218, allocations: 192.6 kB / 0.572 GB, free: 78.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.722, allocations: 120 kB / 0.5721 GB, free: 78.02 MB / 446.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.001138/0.7231, allocations: 0.7213 MB / 0.5728 GB, free: 77.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005512/0.7237, allocations: 0.753 MB / 0.5735 GB, free: 76.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003809/0.7275, allocations: 2.156 MB / 0.5756 GB, free: 74.44 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.7275, allocations: 12 kB / 0.5756 GB, free: 74.43 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.7275, allocations: 0 / 0.5756 GB, free: 74.43 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.7275, allocations: 3.984 kB / 0.5756 GB, free: 74.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/0.7324, allocations: 3.575 MB / 0.5791 GB, free: 70.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001457/0.7326, allocations: 140 kB / 0.5793 GB, free: 70.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007389/0.7333, allocations: 155.8 kB / 0.5794 GB, free: 70.51 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.7333, allocations: 7.938 kB / 0.5794 GB, free: 70.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/0.7334, allocations: 63.98 kB / 0.5795 GB, free: 70.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.7334, allocations: 0 / 0.5795 GB, free: 70.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.7334, allocations: 4 kB / 0.5795 GB, free: 70.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003021/0.7364, allocations: 2.182 MB / 0.5816 GB, free: 68.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/0.7379, allocations: 0.7859 MB / 0.5824 GB, free: 67.43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005498/0.7385, allocations: 19.98 kB / 0.5824 GB, free: 67.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.7396, allocations: 35.91 kB / 0.5824 GB, free: 67.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.7398, allocations: 100.5 kB / 0.5825 GB, free: 67.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.7399, allocations: 64.88 kB / 0.5826 GB, free: 67.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003958/0.7439, allocations: 3.608 MB / 0.5861 GB, free: 63.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7439, allocations: 0 / 0.5861 GB, free: 63.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002178/0.746, allocations: 1.087 MB / 0.5872 GB, free: 62.62 MB / 446.1 MB 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.001441/0.7475, allocations: 1.189 MB / 0.5883 GB, free: 61.49 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002255/0.7497, allocations: 1.366 MB / 0.5897 GB, free: 60.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.7497, allocations: 0 / 0.5897 GB, free: 60.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009497/0.7507, allocations: 0.7407 MB / 0.5904 GB, free: 59.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005078/0.7558, allocations: 1.171 MB / 0.5915 GB, free: 58.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009716/0.7655, allocations: 8.259 MB / 0.5996 GB, free: 49.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.7667, allocations: 2.592 MB / 0.6021 GB, free: 47.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001896/0.7686, allocations: 0.6884 MB / 0.6028 GB, free: 46.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003391/0.769, allocations: 283.4 kB / 0.6031 GB, free: 46.24 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.769, allocations: 0 / 0.6031 GB, free: 46.24 MB / 446.1 MB Notification: Performance of Templates: time 0.08763/0.8566, allocations: 56.63 MB / 0.6584 GB, free: 6.156 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.737013863399625]