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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001253/0.001253, allocations: 171.6 kB / 14.1 MB, free: 1.219 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.2 MB / 219.8 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008455/0.0008455, allocations: 90.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.598e-05/2.601e-05, allocations: 4 kB / 322.4 MB, free: 17.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.0951, allocations: 47.58 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3562/0.4513, allocations: 102.2 MB / 472.2 MB, free: 7.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.4516, allocations: 77.33 kB / 472.3 MB, free: 7.281 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4584/0.91, allocations: 125.5 MB / 0.5838 GB, free: 90.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.91, allocations: 0 / 0.5838 GB, free: 90.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.709e-05/0.9101, allocations: 44.75 kB / 0.5838 GB, free: 90.05 MB / 410.7 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.00442/0.9145, allocations: 2.712 MB / 0.5865 GB, free: 88.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.9146, allocations: 7.219 kB / 0.5865 GB, free: 88.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005108/0.9151, allocations: 398.9 kB / 0.5869 GB, free: 88.19 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/0.9186, allocations: 2.366 MB / 0.5892 GB, free: 87.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.9186, allocations: 39.77 kB / 0.5892 GB, free: 87.08 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.9187, allocations: 53.41 kB / 0.5893 GB, free: 87.06 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.9198, allocations: 0.7891 MB / 0.59 GB, free: 86.69 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.9198, allocations: 3.344 kB / 0.59 GB, free: 86.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.989e-05/0.9199, allocations: 15.09 kB / 0.59 GB, free: 86.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/0.9199, allocations: 26.98 kB / 0.5901 GB, free: 86.67 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008705/0.9208, allocations: 0.7144 MB / 0.5908 GB, free: 86.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005242/0.926, allocations: 3.187 MB / 0.5939 GB, free: 84.94 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.9267, allocations: 492.7 kB / 0.5944 GB, free: 84.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005878/0.9273, allocations: 0.5954 MB / 0.5949 GB, free: 84.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02643/0.9537, allocations: 36.17 MB / 0.6303 GB, free: 46.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004291/0.9542, allocations: 321.4 kB / 0.6306 GB, free: 45.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.685e-06/0.9542, allocations: 0 / 0.6306 GB, free: 45.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001149/0.9553, allocations: 0.8054 MB / 0.6314 GB, free: 44.96 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/0.9554, allocations: 269 kB / 0.6316 GB, free: 44.64 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002811/0.9582, allocations: 2.516 MB / 0.6341 GB, free: 42.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.562e-05/0.9583, allocations: 37.7 kB / 0.6341 GB, free: 42.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008767/0.9592, allocations: 1.509 MB / 0.6356 GB, free: 40.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.9593, allocations: 161.7 kB / 0.6357 GB, free: 40.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.949e-05/0.9594, allocations: 20 kB / 0.6357 GB, free: 40.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.758e-05/0.9594, allocations: 337.9 kB / 0.6361 GB, free: 40.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.9597, allocations: 194 kB / 0.6363 GB, free: 39.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004385/0.9602, allocations: 0.5933 MB / 0.6368 GB, free: 39.06 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/0.9605, allocations: 280.3 kB / 0.6371 GB, free: 38.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.321e-06/0.9605, allocations: 4 kB / 0.6371 GB, free: 38.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001404/0.962, allocations: 1.136 MB / 0.6382 GB, free: 37.64 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.962, allocations: 12.03 kB / 0.6382 GB, free: 37.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.407e-05/0.9621, allocations: 79.98 kB / 0.6383 GB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.768e-05/0.9621, allocations: 20 kB / 0.6383 GB, free: 37.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000666/0.9628, allocations: 211.6 kB / 0.6385 GB, free: 37.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.99e-05/0.9628, allocations: 35.88 kB / 0.6386 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.964, allocations: 119 kB / 0.6387 GB, free: 37.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.668e-05/0.9641, allocations: 67.98 kB / 0.6387 GB, free: 37.11 MB / 410.7 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 () * 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.0001491/0.9642, allocations: 168.6 kB / 0.6389 GB, free: 36.94 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000264/0.9645, allocations: 387.3 kB / 0.6393 GB, free: 36.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002531/0.967, allocations: 1.143 MB / 0.6404 GB, free: 35.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.9671, allocations: 4 kB / 0.6404 GB, free: 35.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.9671, allocations: 3.984 kB / 0.6404 GB, free: 35.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.9671, allocations: 7.891 kB / 0.6404 GB, free: 35.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002942/0.97, allocations: 2.112 MB / 0.6425 GB, free: 33.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.499e-05/0.9701, allocations: 67.98 kB / 0.6425 GB, free: 33.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004612/0.9706, allocations: 107.9 kB / 0.6426 GB, free: 33.03 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.9706, allocations: 4 kB / 0.6426 GB, free: 33.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.218e-05/0.9707, allocations: 35.94 kB / 0.6427 GB, free: 32.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.9707, allocations: 0 / 0.6427 GB, free: 32.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9707, allocations: 8 kB / 0.6427 GB, free: 32.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.9719, allocations: 1.206 MB / 0.6439 GB, free: 31.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008261/0.9727, allocations: 0.5567 MB / 0.6444 GB, free: 31.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.973, allocations: 11.98 kB / 0.6444 GB, free: 31.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007133/0.9737, allocations: 48.03 kB / 0.6445 GB, free: 31.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/0.9739, allocations: 71.8 kB / 0.6445 GB, free: 31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.29e-05/0.9739, allocations: 40 kB / 0.6446 GB, free: 30.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002083/0.976, allocations: 1.919 MB / 0.6464 GB, free: 29.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.976, allocations: 4 kB / 0.6464 GB, free: 29.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001343/0.9774, allocations: 0.6478 MB / 0.6471 GB, free: 28.39 MB / 410.7 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) * 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.00103/0.9784, allocations: 0.8394 MB / 0.6479 GB, free: 27.55 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009416/0.9794, allocations: 0.7124 MB / 0.6486 GB, free: 26.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9794, allocations: 0 / 0.6486 GB, free: 26.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004033/0.9798, allocations: 395.2 kB / 0.649 GB, free: 26.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.9813, allocations: 0.5025 MB / 0.6495 GB, free: 25.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004425/0.9857, allocations: 3.139 MB / 0.6525 GB, free: 22.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007847/0.9865, allocations: 1.732 MB / 0.6542 GB, free: 20.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001223/0.9877, allocations: 378.5 kB / 0.6546 GB, free: 20.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002112/0.988, allocations: 163.4 kB / 0.6547 GB, free: 20.42 MB / 410.7 MB Notification: Performance of SimCode: time 7.81e-07/0.988, allocations: 0 / 0.6547 GB, free: 20.42 MB / 410.7 MB Notification: Performance of Templates: time 0.05185/1.04, allocations: 32.59 MB / 0.6865 GB, free: 3.785 MB / 426.7 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