Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 94.92 kB / 16.95 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 183.1 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004575/0.0004575, allocations: 8 kB / 280.8 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 47.58 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0114/0.1192, allocations: 12.4 MB / 340.7 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02305/0.1423, allocations: 17.93 MB / 358.7 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003176/0.1455, allocations: 31.81 kB / 358.7 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003362/0.1489, allocations: 0.9369 MB / 359.6 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008588/0.1575, allocations: 1.809 MB / 361.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004925/0.1625, allocations: 1.065 MB / 362.5 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01204/0.1745, allocations: 5.919 MB / 368.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.1758, allocations: 432.4 kB / 368.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002113/0.1779, allocations: 0.8512 MB / 369.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.1795, allocations: 0.9862 MB / 370.7 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.1797, allocations: 40 kB / 370.7 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00404/0.1837, allocations: 1.074 MB / 371.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003466/0.1841, allocations: 273.9 kB / 372.1 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001205/0.1853, allocations: 0.6248 MB / 372.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003297/0.1886, allocations: 2.714 MB / 375.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1886, allocations: 0 / 375.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1886, allocations: 0 / 375.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.768e-05/0.1887, allocations: 0 / 375.4 MB, free: 4.816 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005508/0.1942, allocations: 3.272 MB / 378.7 MB, free: 1.469 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.1943, allocations: 8.031 kB / 378.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000406/0.1947, allocations: 403.1 kB / 379.1 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2172/0.4119, allocations: 2.269 MB / 381.4 MB, free: 52.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.031e-05/0.412, allocations: 38.73 kB / 381.4 MB, free: 52.12 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.4122, allocations: 56.23 kB / 381.4 MB, free: 52.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.4138, allocations: 0.7449 MB / 382.2 MB, free: 52.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.4138, allocations: 0 / 382.2 MB, free: 52.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.26e-05/0.4139, allocations: 25.69 kB / 382.2 MB, free: 52.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.242e-05/0.414, allocations: 20.95 kB / 382.2 MB, free: 52.08 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001868/0.4158, allocations: 0.868 MB / 383.1 MB, free: 52.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007314/0.4232, allocations: 3.082 MB / 386.2 MB, free: 50.59 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001282/0.4245, allocations: 0.6131 MB / 386.8 MB, free: 50.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.4256, allocations: 0.6672 MB / 387.5 MB, free: 50.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02571/0.4513, allocations: 30.23 MB / 417.7 MB, free: 22.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.452, allocations: 385 kB / 418.1 MB, free: 22.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.307e-06/0.452, allocations: 0 / 418.1 MB, free: 22.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002287/0.4543, allocations: 1.152 MB / 419.2 MB, free: 21.22 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.4544, allocations: 60.28 kB / 419.3 MB, free: 21.15 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003871/0.4583, allocations: 2.921 MB / 422.2 MB, free: 18.22 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.089e-05/0.4584, allocations: 37.48 kB / 422.2 MB, free: 18.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.4595, allocations: 1.494 MB / 423.7 MB, free: 16.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.4597, allocations: 165.7 kB / 423.9 MB, free: 16.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.4597, allocations: 16 kB / 423.9 MB, free: 16.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.761e-05/0.4598, allocations: 341.9 kB / 424.2 MB, free: 16.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/0.4603, allocations: 261.7 kB / 424.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000637/0.461, allocations: 0.6146 MB / 425.1 MB, free: 15.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005778/0.4616, allocations: 352.5 kB / 425.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.4616, allocations: 4 kB / 425.5 MB, free: 14.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002114/0.4637, allocations: 1.267 MB / 426.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.4638, allocations: 8 kB / 426.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001481/0.4639, allocations: 84.66 kB / 426.8 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.137e-05/0.464, allocations: 16 kB / 426.8 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006563/0.4646, allocations: 212 kB / 427 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.484e-05/0.4647, allocations: 27.86 kB / 427.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.4659, allocations: 126.9 kB / 427.2 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/0.4661, allocations: 72.88 kB / 427.3 MB, free: 12.99 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007189/0.4668, allocations: 433.4 kB / 427.7 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004841/0.4673, allocations: 381.4 kB / 428.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/0.4701, allocations: 1.242 MB / 429.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.4702, allocations: 4 kB / 429.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/0.4702, allocations: 4 kB / 429.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.4702, allocations: 6.75 kB / 429.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003713/0.4739, allocations: 2.138 MB / 431.5 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.136e-05/0.474, allocations: 68 kB / 431.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004118/0.4744, allocations: 106.5 kB / 431.6 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.894e-06/0.4745, allocations: 4.062 kB / 431.6 MB, free: 8.562 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.456e-05/0.4745, allocations: 39.98 kB / 431.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.4745, allocations: 0 / 431.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.4745, allocations: 0 / 431.7 MB, free: 8.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.4766, allocations: 1.361 MB / 433 MB, free: 7.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000964/0.4776, allocations: 480.1 kB / 433.5 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006878/0.4783, allocations: 12 kB / 433.5 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009019/0.4792, allocations: 44.02 kB / 433.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.4794, allocations: 67.89 kB / 433.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.806e-05/0.4794, allocations: 39.98 kB / 433.7 MB, free: 6.484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002604/0.4821, allocations: 1.877 MB / 435.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4821, allocations: 4 kB / 435.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4836, allocations: 0.5894 MB / 436.1 MB, free: 4.039 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001152/0.4848, allocations: 0.74 MB / 436.9 MB, free: 3.461 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.4867, allocations: 0.8568 MB / 437.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4867, allocations: 0 / 437.7 MB, free: 2.578 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009616/0.4877, allocations: 460.8 kB / 438.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003055/0.4907, allocations: 0.4916 MB / 438.7 MB, free: 1.609 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01109/0.5019, allocations: 4.932 MB / 443.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/0.5041, allocations: 1.669 MB / 445.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002177/0.5063, allocations: 361.2 kB / 445.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003615/0.5067, allocations: 155.4 kB / 445.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5067, allocations: 0 / 445.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of Templates: time 0.06534/0.572, allocations: 29.19 MB / 475 MB, free: 13.21 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches