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.00152/0.00152, allocations: 108 kB / 17.06 MB, free: 6.016 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.00118/0.00118, allocations: 195.9 kB / 18 MB, free: 5.102 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.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 55.91 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2897, allocations: 49.42 MB / 400.7 MB, free: 8.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01803/0.3078, allocations: 15.32 MB / 416 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03181/0.3397, allocations: 20.74 MB / 436.8 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003982/0.3437, allocations: 91.25 kB / 436.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005139/0.3489, allocations: 1.265 MB / 438.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.3594, allocations: 2.379 MB / 440.5 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005827/0.3653, allocations: 1.436 MB / 441.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.3771, allocations: 6.609 MB / 448.5 MB, free: 8.875 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009842/0.3781, allocations: 469.6 kB / 449 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001785/0.3799, allocations: 1.135 MB / 450.1 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001137/0.381, allocations: 1.141 MB / 451.3 MB, free: 6.102 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.3812, allocations: 75.94 kB / 451.4 MB, free: 6.027 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004418/0.3856, allocations: 1.483 MB / 452.8 MB, free: 4.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003437/0.386, allocations: 333.5 kB / 453.2 MB, free: 4.215 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001455/0.3875, allocations: 1.428 MB / 454.6 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00595/0.3934, allocations: 3.981 MB / 458.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/0.3935, allocations: 0 / 458.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.3935, allocations: 4 kB / 458.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.63e-05/0.3936, allocations: 3.938 kB / 458.6 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.006104/0.3997, allocations: 3.822 MB / 462.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.59e-05/0.3997, allocations: 12.03 kB / 462.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004668/0.4002, allocations: 410.9 kB / 462.8 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003394/0.4036, allocations: 2.467 MB / 465.3 MB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.574e-05/0.4037, allocations: 37 kB / 465.3 MB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.4038, allocations: 59.89 kB / 465.4 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.4052, allocations: 0.7343 MB / 466.1 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.4052, allocations: 0 / 466.1 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.842e-05/0.4053, allocations: 16 kB / 466.1 MB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.489e-05/0.4053, allocations: 19.98 kB / 466.1 MB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.4069, allocations: 0.8124 MB / 467 MB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005043/0.4119, allocations: 3.098 MB / 470.1 MB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.4131, allocations: 0.579 MB / 470.6 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009379/0.414, allocations: 0.6438 MB / 471.3 MB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02796/0.442, allocations: 30.13 MB / 0.4897 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007258/0.4428, allocations: 369.5 kB / 0.49 GB, free: 15.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.4428, allocations: 4 kB / 0.49 GB, free: 15.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.002303/0.4451, allocations: 1.1 MB / 0.4911 GB, free: 14.09 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.4451, allocations: 59.41 kB / 0.4911 GB, free: 14.02 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.4487, allocations: 3.09 MB / 0.4942 GB, free: 10.93 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.354e-05/0.4488, allocations: 33.7 kB / 0.4942 GB, free: 10.89 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.45, allocations: 1.573 MB / 0.4957 GB, free: 9.305 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.4502, allocations: 169.7 kB / 0.4959 GB, free: 9.137 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.4505, allocations: 226.1 kB / 0.4961 GB, free: 8.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4506, allocations: 337.9 kB / 0.4964 GB, free: 8.574 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005795/0.4512, allocations: 253.8 kB / 0.4967 GB, free: 8.328 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000753/0.452, allocations: 0.5942 MB / 0.4973 GB, free: 7.559 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.4533, allocations: 0.9013 MB / 0.4981 GB, free: 6.484 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-06/0.4533, allocations: 7.938 kB / 0.4981 GB, free: 6.477 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002131/0.4555, allocations: 1.248 MB / 0.4994 GB, free: 5.223 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.4555, allocations: 12 kB / 0.4994 GB, free: 5.211 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001116/0.4556, allocations: 80 kB / 0.4994 GB, free: 5.133 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.217e-05/0.4557, allocations: 19.94 kB / 0.4995 GB, free: 5.113 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006914/0.4564, allocations: 204.4 kB / 0.4997 GB, free: 4.914 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.687e-05/0.4564, allocations: 27.86 kB / 0.4997 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.4576, allocations: 103.1 kB / 0.4998 GB, free: 4.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001319/0.4578, allocations: 64 kB / 0.4998 GB, free: 4.723 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.0009172/0.4587, allocations: 466.2 kB / 0.5003 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003475/0.459, allocations: 395.1 kB / 0.5007 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002407/0.4615, allocations: 1.207 MB / 0.5018 GB, free: 2.641 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.4615, allocations: 7.984 kB / 0.5019 GB, free: 2.633 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.4615, allocations: 3.984 kB / 0.5019 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.4615, allocations: 0 / 0.5019 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003177/0.4647, allocations: 2.147 MB / 0.504 GB, free: 424 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001022/0.4648, allocations: 75.98 kB / 0.504 GB, free: 348 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004749/0.4653, allocations: 91.86 kB / 0.5041 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.4653, allocations: 0 / 0.5041 GB, free: 256 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-05/0.4654, allocations: 28 kB / 0.5041 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.4654, allocations: 7.938 kB / 0.5042 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4654, allocations: 0 / 0.5042 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002188/0.4676, allocations: 1.329 MB / 0.5054 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007281/0.4683, allocations: 496 kB / 0.5059 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002494/0.4686, allocations: 12 kB / 0.5059 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006773/0.4693, allocations: 27.97 kB / 0.506 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001581/0.4694, allocations: 67.94 kB / 0.506 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.355e-05/0.4695, allocations: 36 kB / 0.5061 GB, free: 14.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00262/0.4721, allocations: 2.007 MB / 0.508 GB, free: 12.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4722, allocations: 0 / 0.508 GB, free: 12.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001443/0.4736, allocations: 0.5934 MB / 0.5086 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.001117/0.4747, allocations: 0.7727 MB / 0.5094 GB, free: 10.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.4763, allocations: 0.8252 MB / 0.5102 GB, free: 9.984 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4764, allocations: 0 / 0.5102 GB, free: 9.984 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007356/0.4771, allocations: 439 kB / 0.5106 GB, free: 9.531 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/0.4794, allocations: 0.6359 MB / 0.5112 GB, free: 8.891 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006152/0.4856, allocations: 4.492 MB / 0.5156 GB, free: 4.359 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/0.4867, allocations: 1.714 MB / 0.5173 GB, free: 2.617 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001/0.4877, allocations: 361.3 kB / 0.5176 GB, free: 2.258 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.4879, allocations: 147.4 kB / 0.5177 GB, free: 2.113 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.488, allocations: 0 / 0.5177 GB, free: 2.113 MB / 446.1 MB Notification: Performance of Templates: time 0.2346/0.7225, allocations: 32.01 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