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.001107/0.001107, allocations: 110.9 kB / 17.74 MB, free: 5.316 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.001173/0.001173, allocations: 184.5 kB / 18.67 MB, free: 4.398 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.353/1.353, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 47.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3233, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01594/0.3393, allocations: 15.31 MB / 416.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02799/0.3673, allocations: 20.75 MB / 437.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002921/0.3702, allocations: 87.25 kB / 437.5 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003896/0.3742, allocations: 1.261 MB / 438.8 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008394/0.3826, allocations: 2.348 MB / 441.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004902/0.3876, allocations: 1.432 MB / 442.6 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01026/0.3979, allocations: 6.613 MB / 449.2 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008824/0.3988, allocations: 477.5 kB / 449.6 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001777/0.4006, allocations: 1.135 MB / 450.8 MB, free: 7.242 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001329/0.4019, allocations: 1.141 MB / 451.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000196/0.4021, allocations: 76 kB / 452 MB, free: 6.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004093/0.4062, allocations: 1.475 MB / 453.5 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003812/0.4066, allocations: 337.5 kB / 453.8 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001551/0.4082, allocations: 1.432 MB / 455.2 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006033/0.4142, allocations: 3.981 MB / 459.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.4142, allocations: 4 kB / 459.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4143, allocations: 0 / 459.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.142e-05/0.4143, allocations: 0 / 459.2 MB, free: 14.77 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.005529/0.4199, allocations: 3.822 MB / 463 MB, free: 10.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.4199, allocations: 12.03 kB / 463.1 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000467/0.4204, allocations: 414.9 kB / 463.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003311/0.4237, allocations: 2.463 MB / 465.9 MB, free: 7.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.4238, allocations: 41 kB / 466 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.4239, allocations: 59.91 kB / 466 MB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.4252, allocations: 0.7265 MB / 466.7 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.4252, allocations: 0 / 466.7 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.544e-05/0.4253, allocations: 20 kB / 466.8 MB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.4253, allocations: 19.98 kB / 466.8 MB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001438/0.4267, allocations: 0.8163 MB / 467.6 MB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004887/0.4316, allocations: 3.098 MB / 470.7 MB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.4328, allocations: 0.579 MB / 471.3 MB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/0.4337, allocations: 0.6438 MB / 471.9 MB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02665/0.4604, allocations: 30.13 MB / 0.4903 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000721/0.4612, allocations: 365.5 kB / 0.4906 GB, free: 15.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.156e-06/0.4612, allocations: 4 kB / 0.4906 GB, free: 15.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002235/0.4634, allocations: 1.108 MB / 0.4917 GB, free: 14.08 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.512e-05/0.4635, allocations: 59.41 kB / 0.4918 GB, free: 14.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004334/0.4678, allocations: 3.083 MB / 0.4948 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/0.468, allocations: 37.69 kB / 0.4948 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/0.4694, allocations: 1.573 MB / 0.4964 GB, free: 9.305 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.4696, allocations: 165.7 kB / 0.4965 GB, free: 9.141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003148/0.47, allocations: 226.1 kB / 0.4967 GB, free: 8.914 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.4701, allocations: 341.9 kB / 0.4971 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005749/0.4707, allocations: 241.9 kB / 0.4973 GB, free: 8.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007809/0.4715, allocations: 0.6059 MB / 0.4979 GB, free: 7.559 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.4729, allocations: 0.8935 MB / 0.4988 GB, free: 6.492 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-05/0.4729, allocations: 11.94 kB / 0.4988 GB, free: 6.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002233/0.4751, allocations: 1.257 MB / 0.5 GB, free: 5.219 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.782e-05/0.4752, allocations: 19.92 kB / 0.5 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001024/0.4753, allocations: 80 kB / 0.5001 GB, free: 5.121 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.117e-05/0.4753, allocations: 16 kB / 0.5001 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006836/0.476, allocations: 195.7 kB / 0.5003 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.481e-05/0.476, allocations: 31.8 kB / 0.5003 GB, free: 4.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.4771, allocations: 111.2 kB / 0.5004 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.4772, allocations: 64 kB / 0.5005 GB, free: 4.711 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.0007829/0.478, allocations: 453.9 kB / 0.5009 GB, free: 4.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003719/0.4784, allocations: 399.1 kB / 0.5013 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002474/0.4808, allocations: 1.211 MB / 0.5025 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4809, allocations: 4 kB / 0.5025 GB, free: 2.633 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4809, allocations: 0 / 0.5025 GB, free: 2.633 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4809, allocations: 3.984 kB / 0.5025 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003169/0.4841, allocations: 2.143 MB / 0.5046 GB, free: 428 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.129e-05/0.4842, allocations: 72 kB / 0.5046 GB, free: 356 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.4846, allocations: 95.92 kB / 0.5047 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.4846, allocations: 3.984 kB / 0.5047 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-05/0.4847, allocations: 32 kB / 0.5048 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.4847, allocations: 4 kB / 0.5048 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.4847, allocations: 0 / 0.5048 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002276/0.487, allocations: 1.325 MB / 0.5061 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/0.4878, allocations: 0.4922 MB / 0.5066 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.4881, allocations: 15.92 kB / 0.5066 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006226/0.4887, allocations: 27.97 kB / 0.5066 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001564/0.4889, allocations: 63.88 kB / 0.5067 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.265e-05/0.4889, allocations: 36 kB / 0.5067 GB, free: 14.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002775/0.4917, allocations: 2.01 MB / 0.5087 GB, free: 12.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4917, allocations: 0 / 0.5087 GB, free: 12.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00149/0.4932, allocations: 0.5934 MB / 0.5092 GB, free: 11.61 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.001157/0.4944, allocations: 0.7688 MB / 0.51 GB, free: 10.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001637/0.496, allocations: 0.8172 MB / 0.5108 GB, free: 9.988 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.4961, allocations: 320 / 0.5108 GB, free: 9.988 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007327/0.4968, allocations: 447 kB / 0.5112 GB, free: 9.527 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002602/0.4994, allocations: 0.635 MB / 0.5118 GB, free: 8.891 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006427/0.5058, allocations: 4.572 MB / 0.5163 GB, free: 4.273 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.5069, allocations: 1.706 MB / 0.518 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003494/0.5073, allocations: 159.4 kB / 0.5181 GB, free: 2.383 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.5073, allocations: 0 / 0.5181 GB, free: 2.383 MB / 446.1 MB Notification: Performance of Templates: time 0.2695/0.7767, allocations: 39.11 MB / 0.5563 GB, free: 122.2 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/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