Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 107.8 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.001379/0.001379, allocations: 188 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 51.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2982, allocations: 49.43 MB / 400.7 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01404/0.3123, allocations: 15.31 MB / 416 MB, free: 9.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02358/0.3359, allocations: 20.74 MB / 436.8 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.3384, allocations: 91.25 kB / 436.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003235/0.3417, allocations: 1.269 MB / 438.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007179/0.3489, allocations: 2.375 MB / 440.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004494/0.3534, allocations: 1.436 MB / 441.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01/0.3634, allocations: 6.613 MB / 448.5 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009008/0.3644, allocations: 469.5 kB / 449 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001705/0.3661, allocations: 1.135 MB / 450.1 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.3673, allocations: 1.141 MB / 451.3 MB, free: 6.047 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001656/0.3675, allocations: 79.94 kB / 451.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00407/0.3716, allocations: 1.479 MB / 452.8 MB, free: 4.488 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004862/0.3721, allocations: 337.5 kB / 453.2 MB, free: 4.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001588/0.3737, allocations: 1.432 MB / 454.6 MB, free: 2.715 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005318/0.379, allocations: 3.973 MB / 458.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.379, allocations: 4 kB / 458.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.379, allocations: 0 / 458.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.449e-05/0.3791, allocations: 3.938 kB / 458.6 MB, free: 14.72 MB / 382.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.005238/0.3844, allocations: 3.822 MB / 462.4 MB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3844, allocations: 8.031 kB / 462.4 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004185/0.3848, allocations: 410.9 kB / 462.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003382/0.3882, allocations: 2.471 MB / 465.3 MB, free: 7.859 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.3883, allocations: 40.98 kB / 465.3 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.3884, allocations: 55.91 kB / 465.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001405/0.3898, allocations: 0.7265 MB / 466.1 MB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.3899, allocations: 4 kB / 466.1 MB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-05/0.3899, allocations: 16 kB / 466.1 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.39, allocations: 23.98 kB / 466.1 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.3915, allocations: 0.8163 MB / 467 MB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005054/0.3966, allocations: 3.102 MB / 470.1 MB, free: 2.984 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.3978, allocations: 0.5712 MB / 470.6 MB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009573/0.3988, allocations: 0.6438 MB / 471.3 MB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02898/0.4278, allocations: 30.13 MB / 0.4897 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008892/0.4287, allocations: 365.5 kB / 0.49 GB, free: 15.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.4287, allocations: 0 / 0.49 GB, free: 15.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002477/0.4312, allocations: 1.1 MB / 0.4911 GB, free: 14.04 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.4312, allocations: 67.39 kB / 0.4911 GB, free: 13.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003655/0.4349, allocations: 3.087 MB / 0.4942 GB, free: 10.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.435, allocations: 29.7 kB / 0.4942 GB, free: 10.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/0.4362, allocations: 1.576 MB / 0.4957 GB, free: 9.254 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.4364, allocations: 161.7 kB / 0.4959 GB, free: 9.094 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.4366, allocations: 230.1 kB / 0.4961 GB, free: 8.863 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.4368, allocations: 338 kB / 0.4964 GB, free: 8.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005838/0.4373, allocations: 253.8 kB / 0.4967 GB, free: 8.281 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007921/0.4381, allocations: 0.602 MB / 0.4973 GB, free: 7.504 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.4396, allocations: 0.8974 MB / 0.4981 GB, free: 6.434 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.4396, allocations: 7.938 kB / 0.4981 GB, free: 6.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002122/0.4417, allocations: 1.249 MB / 0.4994 GB, free: 5.172 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.4417, allocations: 18.72 kB / 0.4994 GB, free: 5.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001103/0.4419, allocations: 80 kB / 0.4995 GB, free: 5.078 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.668e-05/0.4419, allocations: 23.92 kB / 0.4995 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007239/0.4426, allocations: 191.7 kB / 0.4997 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.521e-05/0.4427, allocations: 31.86 kB / 0.4997 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009838/0.4436, allocations: 107.1 kB / 0.4998 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.93e-05/0.4438, allocations: 71.98 kB / 0.4999 GB, free: 4.66 MB / 430.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 (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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0007146/0.4445, allocations: 450.2 kB / 0.5003 GB, free: 4.211 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003352/0.4448, allocations: 399.1 kB / 0.5007 GB, free: 3.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002593/0.4474, allocations: 1.211 MB / 0.5019 GB, free: 2.586 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.4474, allocations: 4 kB / 0.5019 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4474, allocations: 0 / 0.5019 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.4475, allocations: 0 / 0.5019 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003284/0.4507, allocations: 2.147 MB / 0.504 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.546e-05/0.4509, allocations: 71.98 kB / 0.504 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004917/0.4514, allocations: 95.92 kB / 0.5041 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.4514, allocations: 4 kB / 0.5041 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.4514, allocations: 35.92 kB / 0.5042 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.4515, allocations: 3.938 kB / 0.5042 GB, free: 164 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.4515, allocations: 4 kB / 0.5042 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002276/0.4537, allocations: 1.329 MB / 0.5055 GB, free: 14.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006486/0.4544, allocations: 492 kB / 0.5059 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003061/0.4547, allocations: 16.06 kB / 0.5059 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007495/0.4555, allocations: 27.95 kB / 0.506 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4556, allocations: 63.89 kB / 0.506 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.365e-05/0.4557, allocations: 39.98 kB / 0.5061 GB, free: 14.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002528/0.4583, allocations: 2.01 MB / 0.508 GB, free: 12.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4583, allocations: 0 / 0.508 GB, free: 12.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001295/0.4596, allocations: 0.5856 MB / 0.5086 GB, free: 11.56 MB / 446.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 (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.001033/0.4606, allocations: 0.7688 MB / 0.5094 GB, free: 10.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.4622, allocations: 0.8213 MB / 0.5102 GB, free: 9.938 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4623, allocations: 0 / 0.5102 GB, free: 9.938 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007877/0.463, allocations: 443.1 kB / 0.5106 GB, free: 9.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.4656, allocations: 0.6397 MB / 0.5112 GB, free: 8.836 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005772/0.4714, allocations: 4.492 MB / 0.5156 GB, free: 4.305 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.4725, allocations: 1.71 MB / 0.5173 GB, free: 2.566 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.4736, allocations: 361.3 kB / 0.5176 GB, free: 2.207 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.4738, allocations: 147.4 kB / 0.5177 GB, free: 2.062 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4738, allocations: 0 / 0.5177 GB, free: 2.062 MB / 446.1 MB Notification: Performance of Templates: time 0.2365/0.7103, allocations: 32 MB / 0.549 GB, free: 130 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches