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.001166/0.001167, allocations: 107.3 kB / 17.06 MB, free: 5.828 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.00125/0.00125, allocations: 195.9 kB / 18 MB, free: 4.965 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.336/1.336, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 43.94 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3048, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02277/0.3276, allocations: 26.72 MB / 427.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02778/0.3555, allocations: 22.34 MB / 449.8 MB, free: 7.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004611/0.3601, allocations: 174.6 kB / 449.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004938/0.365, allocations: 1.778 MB / 451.7 MB, free: 5.641 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01095/0.3761, allocations: 3.255 MB / 455 MB, free: 2.363 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005639/0.3817, allocations: 1.627 MB / 456.6 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01981/0.4016, allocations: 12.67 MB / 469.3 MB, free: 4.016 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001988/0.4036, allocations: 0.8591 MB / 470.1 MB, free: 3.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003631/0.4072, allocations: 2.107 MB / 472.2 MB, free: 1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003445/0.4107, allocations: 2.104 MB / 474.3 MB, free: 14.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005592/0.4113, allocations: 136 kB / 474.5 MB, free: 14.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004767/0.4161, allocations: 1.529 MB / 476 MB, free: 13.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008623/0.4169, allocations: 0.601 MB / 476.6 MB, free: 12.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003574/0.4205, allocations: 2.628 MB / 479.2 MB, free: 9.969 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009151/0.4297, allocations: 6.63 MB / 485.9 MB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.4297, allocations: 0 / 485.9 MB, free: 3.312 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4298, allocations: 0 / 485.9 MB, free: 3.312 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001575/0.4299, allocations: 0 / 485.9 MB, free: 3.312 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.009593/0.4395, allocations: 6.67 MB / 492.5 MB, free: 12.54 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4396, allocations: 8.031 kB / 492.5 MB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009014/0.4405, allocations: 0.7409 MB / 493.3 MB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006744/0.4472, allocations: 4.59 MB / 497.9 MB, free: 7.105 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/0.4473, allocations: 70 kB / 497.9 MB, free: 7.035 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002274/0.4476, allocations: 95.91 kB / 498 MB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002276/0.4498, allocations: 1.309 MB / 499.3 MB, free: 5.617 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.4499, allocations: 4 kB / 499.4 MB, free: 5.613 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001219/0.45, allocations: 35.94 kB / 499.4 MB, free: 5.578 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.745e-05/0.4501, allocations: 43.97 kB / 499.4 MB, free: 5.535 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002449/0.4525, allocations: 1.48 MB / 0.4892 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009289/0.4618, allocations: 5.609 MB / 0.4946 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001695/0.4635, allocations: 0.9967 MB / 0.4956 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.4652, allocations: 1.219 MB / 0.4968 GB, free: 12.13 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2403/0.7054, allocations: 59.8 MB / 0.5552 GB, free: 118 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008832/0.7064, allocations: 0.5596 MB / 0.5558 GB, free: 117.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.705e-06/0.7064, allocations: 0 / 0.5558 GB, free: 117.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002743/0.7091, allocations: 1.869 MB / 0.5576 GB, free: 117.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.7092, allocations: 69.45 kB / 0.5577 GB, free: 117.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004837/0.714, allocations: 5.584 MB / 0.5631 GB, free: 113.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.7141, allocations: 37.7 kB / 0.5631 GB, free: 113.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001655/0.7158, allocations: 2.948 MB / 0.566 GB, free: 110.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.716, allocations: 292.2 kB / 0.5663 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003811/0.7164, allocations: 427.9 kB / 0.5667 GB, free: 110.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.338e-05/0.7165, allocations: 301.1 kB / 0.567 GB, free: 109.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007595/0.7172, allocations: 409.5 kB / 0.5674 GB, free: 109.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000903/0.7181, allocations: 1.091 MB / 0.5684 GB, free: 108.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.7198, allocations: 1.609 MB / 0.57 GB, free: 106.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.7199, allocations: 4 kB / 0.57 GB, free: 106.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002875/0.7227, allocations: 2.212 MB / 0.5722 GB, free: 104 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.7228, allocations: 19.94 kB / 0.5722 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001709/0.723, allocations: 160 kB / 0.5724 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.303e-05/0.723, allocations: 35.98 kB / 0.5724 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.7241, allocations: 365 kB / 0.5727 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.581e-05/0.7241, allocations: 47.86 kB / 0.5728 GB, free: 103.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.7258, allocations: 182 kB / 0.573 GB, free: 103.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/0.7259, allocations: 124 kB / 0.5731 GB, free: 103.1 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.001115/0.7271, allocations: 0.7194 MB / 0.5738 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005184/0.7276, allocations: 0.714 MB / 0.5745 GB, free: 101.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003671/0.7313, allocations: 2.152 MB / 0.5766 GB, free: 99.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.7313, allocations: 8 kB / 0.5766 GB, free: 99.53 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.7313, allocations: 0 / 0.5766 GB, free: 99.53 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.7313, allocations: 7.984 kB / 0.5766 GB, free: 99.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004182/0.7355, allocations: 3.6 MB / 0.5801 GB, free: 95.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001497/0.7357, allocations: 136 kB / 0.5802 GB, free: 95.74 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007363/0.7364, allocations: 155.8 kB / 0.5804 GB, free: 95.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.61e-06/0.7364, allocations: 4 kB / 0.5804 GB, free: 95.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.325e-05/0.7365, allocations: 63.98 kB / 0.5805 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.7365, allocations: 4 kB / 0.5805 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.7365, allocations: 0 / 0.5805 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.7391, allocations: 2.16 MB / 0.5826 GB, free: 93.33 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009129/0.74, allocations: 0.8239 MB / 0.5834 GB, free: 92.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00054/0.7406, allocations: 12 kB / 0.5834 GB, free: 92.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.7417, allocations: 37.84 kB / 0.5834 GB, free: 92.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001874/0.7419, allocations: 92.48 kB / 0.5835 GB, free: 92.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.04e-05/0.742, allocations: 71.98 kB / 0.5836 GB, free: 92.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003363/0.7454, allocations: 3.604 MB / 0.5871 GB, free: 88.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7454, allocations: 3.938 kB / 0.5871 GB, free: 88.69 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001722/0.7471, allocations: 1.08 MB / 0.5882 GB, free: 87.65 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.001288/0.7484, allocations: 1.186 MB / 0.5893 GB, free: 86.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.7504, allocations: 1.419 MB / 0.5907 GB, free: 85.05 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.7504, allocations: 1.25 kB / 0.5907 GB, free: 85.05 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009005/0.7513, allocations: 0.7784 MB / 0.5915 GB, free: 84.22 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003955/0.7552, allocations: 1.173 MB / 0.5926 GB, free: 83.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008815/0.7641, allocations: 8.092 MB / 0.6005 GB, free: 74.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00129/0.7654, allocations: 2.592 MB / 0.603 GB, free: 72.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001788/0.7672, allocations: 0.6768 MB / 0.6037 GB, free: 71.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/0.7675, allocations: 287.4 kB / 0.604 GB, free: 71.35 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/0.7675, allocations: 0 / 0.604 GB, free: 71.35 MB / 462.1 MB Notification: Performance of Templates: time 0.07509/0.8426, allocations: 55.3 MB / 0.658 GB, free: 16.65 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