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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.000974/0.000974, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 55.92 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2983, allocations: 49.43 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02342/0.3218, allocations: 26.72 MB / 427.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03098/0.3528, allocations: 22.34 MB / 449.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004782/0.3577, allocations: 174.6 kB / 449.9 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005156/0.3628, allocations: 1.778 MB / 451.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01172/0.3747, allocations: 3.251 MB / 455 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006007/0.3807, allocations: 1.623 MB / 456.6 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02066/0.4014, allocations: 12.69 MB / 469.3 MB, free: 4.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002011/0.4034, allocations: 0.8552 MB / 470.1 MB, free: 3.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003432/0.4069, allocations: 2.111 MB / 472.2 MB, free: 1.012 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002211/0.4091, allocations: 2.1 MB / 474.3 MB, free: 14.9 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003039/0.4094, allocations: 136 kB / 474.5 MB, free: 14.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004236/0.4137, allocations: 1.533 MB / 476 MB, free: 13.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005839/0.4143, allocations: 0.6049 MB / 476.6 MB, free: 12.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002636/0.4169, allocations: 2.62 MB / 479.2 MB, free: 9.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007748/0.4247, allocations: 6.626 MB / 485.9 MB, free: 3.332 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4247, allocations: 0 / 485.9 MB, free: 3.332 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4247, allocations: 0 / 485.9 MB, free: 3.332 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001144/0.4248, allocations: 4 kB / 485.9 MB, free: 3.328 MB / 398.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.008623/0.4335, allocations: 6.67 MB / 492.5 MB, free: 12.56 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.4335, allocations: 15.89 kB / 492.6 MB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007723/0.4343, allocations: 0.7409 MB / 493.3 MB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005968/0.4403, allocations: 4.594 MB / 497.9 MB, free: 7.109 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.966e-05/0.4403, allocations: 69.94 kB / 498 MB, free: 7.039 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002164/0.4406, allocations: 99.89 kB / 498.1 MB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0021/0.4427, allocations: 1.301 MB / 499.4 MB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.4427, allocations: 0 / 499.4 MB, free: 5.625 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.4428, allocations: 43.92 kB / 499.4 MB, free: 5.582 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.016e-05/0.4429, allocations: 35.98 kB / 499.4 MB, free: 5.547 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00242/0.4453, allocations: 1.488 MB / 0.4892 GB, free: 4.059 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008939/0.4542, allocations: 5.609 MB / 0.4947 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001625/0.4559, allocations: 0.989 MB / 0.4956 GB, free: 13.36 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/0.4574, allocations: 1.223 MB / 0.4968 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2501/0.7076, allocations: 59.8 MB / 0.5552 GB, free: 118 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008521/0.7085, allocations: 0.5509 MB / 0.5558 GB, free: 117.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.347e-06/0.7085, allocations: 0 / 0.5558 GB, free: 117.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002804/0.7113, allocations: 1.884 MB / 0.5576 GB, free: 117.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.7114, allocations: 62.91 kB / 0.5577 GB, free: 117.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005312/0.7167, allocations: 5.584 MB / 0.5631 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.603e-05/0.7168, allocations: 45.69 kB / 0.5632 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00158/0.7184, allocations: 2.943 MB / 0.566 GB, free: 111 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000178/0.7186, allocations: 294.5 kB / 0.5663 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000379/0.7189, allocations: 418.5 kB / 0.5667 GB, free: 110.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.802e-05/0.719, allocations: 301.1 kB / 0.567 GB, free: 110 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006896/0.7197, allocations: 407.4 kB / 0.5674 GB, free: 109.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008706/0.7206, allocations: 1.095 MB / 0.5684 GB, free: 108.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001627/0.7222, allocations: 1.608 MB / 0.57 GB, free: 106.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.053e-05/0.7222, allocations: 8 kB / 0.57 GB, free: 106.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002747/0.725, allocations: 2.21 MB / 0.5722 GB, free: 104.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.725, allocations: 22.75 kB / 0.5722 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.7252, allocations: 160 kB / 0.5724 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.23e-05/0.7252, allocations: 36 kB / 0.5724 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.7262, allocations: 359.2 kB / 0.5727 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.71e-05/0.7263, allocations: 43.86 kB / 0.5728 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.7278, allocations: 190 kB / 0.573 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.728, allocations: 124 kB / 0.5731 GB, free: 103.2 MB / 462.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.001117/0.7291, allocations: 0.7135 MB / 0.5738 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005178/0.7296, allocations: 0.714 MB / 0.5745 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003541/0.7332, allocations: 2.154 MB / 0.5766 GB, free: 99.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.7332, allocations: 8 kB / 0.5766 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.7332, allocations: 4 kB / 0.5766 GB, free: 99.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.7332, allocations: 3.984 kB / 0.5766 GB, free: 99.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004276/0.7375, allocations: 3.605 MB / 0.5801 GB, free: 96.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001358/0.7377, allocations: 140 kB / 0.5802 GB, free: 95.87 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000661/0.7383, allocations: 151.9 kB / 0.5804 GB, free: 95.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.7383, allocations: 4 kB / 0.5804 GB, free: 95.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.429e-05/0.7384, allocations: 67.92 kB / 0.5805 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.249e-06/0.7384, allocations: 0 / 0.5805 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7385, allocations: 4 kB / 0.5805 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002749/0.7412, allocations: 2.146 MB / 0.5826 GB, free: 93.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.7424, allocations: 0.8208 MB / 0.5834 GB, free: 92.62 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000463/0.7429, allocations: 27.94 kB / 0.5834 GB, free: 92.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/0.7439, allocations: 31.95 kB / 0.5834 GB, free: 92.56 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.7441, allocations: 104.4 kB / 0.5835 GB, free: 92.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.7442, allocations: 64 kB / 0.5836 GB, free: 92.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003863/0.7481, allocations: 3.608 MB / 0.5871 GB, free: 88.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7481, allocations: 0 / 0.5871 GB, free: 88.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00197/0.7501, allocations: 1.076 MB / 0.5882 GB, free: 87.79 MB / 462.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.001289/0.7514, allocations: 1.175 MB / 0.5893 GB, free: 86.66 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001962/0.7534, allocations: 1.432 MB / 0.5907 GB, free: 85.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.7534, allocations: 0 / 0.5907 GB, free: 85.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008782/0.7543, allocations: 0.7752 MB / 0.5915 GB, free: 84.36 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003914/0.7582, allocations: 1.172 MB / 0.5926 GB, free: 83.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008495/0.7667, allocations: 8.092 MB / 0.6005 GB, free: 75.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001219/0.7679, allocations: 2.592 MB / 0.603 GB, free: 72.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001766/0.7697, allocations: 0.6807 MB / 0.6037 GB, free: 71.76 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003162/0.77, allocations: 283.4 kB / 0.604 GB, free: 71.48 MB / 462.1 MB Notification: Performance of SimCode: time 6.82e-07/0.77, allocations: 0 / 0.604 GB, free: 71.48 MB / 462.1 MB Notification: Performance of Templates: time 0.07698/0.847, allocations: 55.31 MB / 0.658 GB, free: 16.77 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches