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.001409/0.001409, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001811/0.001811, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 47.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.264, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01418/0.2783, allocations: 15.31 MB / 416 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02331/0.3016, allocations: 20.74 MB / 436.8 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.3041, allocations: 91.25 kB / 436.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003205/0.3073, allocations: 1.263 MB / 438.1 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007681/0.3151, allocations: 2.344 MB / 440.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004862/0.32, allocations: 1.432 MB / 441.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01053/0.3305, allocations: 6.613 MB / 448.5 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008888/0.3315, allocations: 469.6 kB / 449 MB, free: 8.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001824/0.3333, allocations: 1.116 MB / 450.1 MB, free: 7.277 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.3347, allocations: 1.141 MB / 451.2 MB, free: 6.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001937/0.3349, allocations: 76 kB / 451.3 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004101/0.339, allocations: 1.475 MB / 452.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004181/0.3394, allocations: 341.5 kB / 453.1 MB, free: 4.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00165/0.3411, allocations: 1.428 MB / 454.5 MB, free: 2.805 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006862/0.348, allocations: 3.993 MB / 458.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.348, allocations: 3.984 kB / 458.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.348, allocations: 3.938 kB / 458.5 MB, free: 14.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.226e-05/0.3481, allocations: 0 / 458.5 MB, free: 14.79 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.005369/0.3535, allocations: 3.973 MB / 462.5 MB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3535, allocations: 8.031 kB / 462.5 MB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004468/0.354, allocations: 437.2 kB / 462.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/0.3571, allocations: 2.503 MB / 465.4 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.3572, allocations: 40.94 kB / 465.5 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.3573, allocations: 59.92 kB / 465.5 MB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.3586, allocations: 0.7265 MB / 466.3 MB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3587, allocations: 4 kB / 466.3 MB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.3587, allocations: 20 kB / 466.3 MB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.226e-05/0.3588, allocations: 23.98 kB / 466.3 MB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.3603, allocations: 0.8124 MB / 467.1 MB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005027/0.3653, allocations: 3.099 MB / 470.2 MB, free: 2.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/0.3665, allocations: 0.579 MB / 470.8 MB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009952/0.3675, allocations: 0.6438 MB / 471.4 MB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03117/0.3987, allocations: 30.14 MB / 0.4898 GB, free: 15.37 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001139/0.3999, allocations: 361.7 kB / 0.4902 GB, free: 15.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.386e-06/0.3999, allocations: 0 / 0.4902 GB, free: 15.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.003709/0.4036, allocations: 1.138 MB / 0.4913 GB, free: 13.86 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.4037, allocations: 55.41 kB / 0.4913 GB, free: 13.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007476/0.4112, allocations: 3.09 MB / 0.4944 GB, free: 10.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.4114, allocations: 37.7 kB / 0.4944 GB, free: 10.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/0.4136, allocations: 1.582 MB / 0.4959 GB, free: 9.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.4139, allocations: 170.6 kB / 0.4961 GB, free: 8.902 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000436/0.4143, allocations: 238.3 kB / 0.4963 GB, free: 8.664 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.4145, allocations: 337.9 kB / 0.4966 GB, free: 8.328 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009329/0.4155, allocations: 245.8 kB / 0.4969 GB, free: 8.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.4167, allocations: 0.602 MB / 0.4975 GB, free: 7.312 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002194/0.4189, allocations: 0.9013 MB / 0.4984 GB, free: 6.238 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-05/0.4189, allocations: 7.938 kB / 0.4984 GB, free: 6.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003656/0.4226, allocations: 1.255 MB / 0.4996 GB, free: 4.973 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.951e-05/0.4226, allocations: 12 kB / 0.4996 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001643/0.4228, allocations: 80 kB / 0.4997 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.264e-05/0.4229, allocations: 16 kB / 0.4997 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.424, allocations: 204 kB / 0.4999 GB, free: 4.668 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.2e-05/0.4241, allocations: 39.8 kB / 0.4999 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.426, allocations: 107.3 kB / 0.5 GB, free: 4.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.4262, allocations: 64 kB / 0.5001 GB, free: 4.461 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.001208/0.4274, allocations: 450.2 kB / 0.5005 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008516/0.4283, allocations: 417.4 kB / 0.5009 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0043/0.4326, allocations: 1.215 MB / 0.5021 GB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4326, allocations: 4 kB / 0.5021 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4326, allocations: 0 / 0.5021 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.4327, allocations: 3.984 kB / 0.5021 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/0.4384, allocations: 2.147 MB / 0.5042 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001323/0.4386, allocations: 71.98 kB / 0.5043 GB, free: 76 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007976/0.4394, allocations: 95.92 kB / 0.5044 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.344e-05/0.4394, allocations: 4 kB / 0.5044 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.439e-05/0.4395, allocations: 36 kB / 0.5044 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/0.4395, allocations: 4 kB / 0.5044 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4395, allocations: 0 / 0.5044 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.4432, allocations: 1.347 MB / 0.5057 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001363/0.4446, allocations: 0.5099 MB / 0.5062 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006463/0.4453, allocations: 8 kB / 0.5062 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.4466, allocations: 27.97 kB / 0.5063 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002201/0.4468, allocations: 67.88 kB / 0.5063 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.447, allocations: 36 kB / 0.5064 GB, free: 13.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004532/0.4515, allocations: 2.011 MB / 0.5083 GB, free: 11.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4515, allocations: 0 / 0.5083 GB, free: 11.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001395/0.4529, allocations: 0.5931 MB / 0.5089 GB, free: 11.3 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.001159/0.4541, allocations: 0.78 MB / 0.5097 GB, free: 10.51 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.4559, allocations: 0.8174 MB / 0.5105 GB, free: 9.668 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4559, allocations: 0 / 0.5105 GB, free: 9.668 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007565/0.4567, allocations: 439 kB / 0.5109 GB, free: 9.215 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002774/0.4594, allocations: 0.6385 MB / 0.5115 GB, free: 8.574 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007129/0.4666, allocations: 4.594 MB / 0.516 GB, free: 3.934 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001617/0.4682, allocations: 1.706 MB / 0.5176 GB, free: 2.199 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001133/0.4694, allocations: 365.3 kB / 0.518 GB, free: 1.836 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.4696, allocations: 151.4 kB / 0.5181 GB, free: 1.688 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4696, allocations: 0 / 0.5181 GB, free: 1.688 MB / 446.1 MB Notification: Performance of Templates: time 0.2333/0.703, allocations: 32.01 MB / 0.5494 GB, free: 129.6 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