Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001826/0.001826, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002246/0.002245, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.381/2.381, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 63.89 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3865/0.3887, allocations: 50.53 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.02528/0.4141, allocations: 15.31 MB / 425.2 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0474/0.4615, allocations: 20.78 MB / 446 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004555/0.4661, allocations: 87.25 kB / 446.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006949/0.4732, allocations: 1.261 MB / 447.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01654/0.4898, allocations: 2.351 MB / 449.7 MB, free: 9.668 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009451/0.4993, allocations: 1.443 MB / 451.1 MB, free: 8.215 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01907/0.5184, allocations: 6.683 MB / 457.8 MB, free: 1.512 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001877/0.5204, allocations: 477.5 kB / 458.3 MB, free: 1.016 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003032/0.5234, allocations: 1.135 MB / 459.4 MB, free: 15.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003027/0.5265, allocations: 1.149 MB / 460.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000618/0.5272, allocations: 76 kB / 460.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008476/0.5357, allocations: 1.475 MB / 462.1 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008729/0.5366, allocations: 333.5 kB / 462.5 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003246/0.5399, allocations: 1.432 MB / 463.9 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.5508, allocations: 3.985 MB / 467.9 MB, free: 7.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.136e-05/0.5508, allocations: 4 kB / 467.9 MB, free: 7.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5509, allocations: 0 / 467.9 MB, free: 7.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001364/0.551, allocations: 0 / 467.9 MB, free: 7.395 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.01128/0.5623, allocations: 3.822 MB / 471.7 MB, free: 3.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.5624, allocations: 12.03 kB / 471.7 MB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001269/0.5637, allocations: 410.9 kB / 472.1 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007279/0.571, allocations: 2.467 MB / 474.6 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.819e-05/0.5711, allocations: 37 kB / 474.6 MB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003998/0.5715, allocations: 63.83 kB / 474.7 MB, free: 448 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.5743, allocations: 0.7265 MB / 475.4 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.881e-05/0.5744, allocations: 0 / 475.4 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000134/0.5745, allocations: 23.94 kB / 475.4 MB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.5746, allocations: 23.98 kB / 475.4 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002957/0.5776, allocations: 0.8124 MB / 476.3 MB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.5882, allocations: 3.09 MB / 479.3 MB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002354/0.5906, allocations: 0.5752 MB / 479.9 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002003/0.5927, allocations: 0.6477 MB / 480.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0565/0.6492, allocations: 30.76 MB / 0.4993 GB, free: 7.422 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001322/0.6506, allocations: 369.6 kB / 0.4997 GB, free: 7.051 MB / 430.1 MB Notification: Performance of pre-optimization done (n=49): time 6.182e-06/0.6506, allocations: 0 / 0.4997 GB, free: 7.051 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.004356/0.655, allocations: 1.1 MB / 0.5008 GB, free: 5.938 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.6551, allocations: 67.39 kB / 0.5008 GB, free: 5.859 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008694/0.6638, allocations: 3.09 MB / 0.5039 GB, free: 2.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.6641, allocations: 33.7 kB / 0.5039 GB, free: 2.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002524/0.6667, allocations: 1.573 MB / 0.5054 GB, free: 1.148 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003824/0.6671, allocations: 169.7 kB / 0.5056 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007383/0.6679, allocations: 230.1 kB / 0.5058 GB, free: 0.75 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.6681, allocations: 334 kB / 0.5061 GB, free: 428 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.6692, allocations: 253.8 kB / 0.5064 GB, free: 176 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.6707, allocations: 0.5943 MB / 0.5069 GB, free: 15.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002558/0.6733, allocations: 0.8973 MB / 0.5078 GB, free: 14.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.277e-05/0.6733, allocations: 7.938 kB / 0.5078 GB, free: 14.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004524/0.6779, allocations: 1.24 MB / 0.509 GB, free: 13.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.108e-05/0.678, allocations: 14.66 kB / 0.5091 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002018/0.6782, allocations: 80.91 kB / 0.5091 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.868e-05/0.6782, allocations: 20 kB / 0.5092 GB, free: 12.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.6796, allocations: 207.6 kB / 0.5094 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.008e-05/0.6797, allocations: 27.92 kB / 0.5094 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002473/0.6822, allocations: 103 kB / 0.5095 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002588/0.6825, allocations: 68 kB / 0.5095 GB, free: 12.57 MB / 446.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.001655/0.6841, allocations: 465.3 kB / 0.51 GB, free: 12.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/0.6853, allocations: 399.1 kB / 0.5104 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00531/0.6906, allocations: 1.211 MB / 0.5115 GB, free: 10.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.6907, allocations: 4 kB / 0.5116 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/0.6907, allocations: 4 kB / 0.5116 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.6908, allocations: 0 / 0.5116 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007773/0.6985, allocations: 2.147 MB / 0.5137 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001627/0.6988, allocations: 71.98 kB / 0.5137 GB, free: 8.188 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009017/0.6997, allocations: 87.92 kB / 0.5138 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.547e-05/0.6997, allocations: 4 kB / 0.5138 GB, free: 8.098 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6999, allocations: 28 kB / 0.5138 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.098e-06/0.6999, allocations: 7.984 kB / 0.5138 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.6999, allocations: 8 kB / 0.5138 GB, free: 8.055 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004576/0.7045, allocations: 1.325 MB / 0.5151 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/0.7065, allocations: 496 kB / 0.5156 GB, free: 6.191 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008074/0.7073, allocations: 12 kB / 0.5156 GB, free: 6.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/0.7091, allocations: 32.02 kB / 0.5157 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002983/0.7094, allocations: 63.89 kB / 0.5157 GB, free: 6.086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001579/0.7096, allocations: 36 kB / 0.5158 GB, free: 6.051 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006513/0.7161, allocations: 2.01 MB / 0.5177 GB, free: 4.047 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.51e-07/0.7162, allocations: 0 / 0.5177 GB, free: 4.047 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00293/0.7191, allocations: 0.5973 MB / 0.5183 GB, free: 3.449 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.00205/0.7212, allocations: 0.7661 MB / 0.519 GB, free: 2.676 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003039/0.7243, allocations: 0.8094 MB / 0.5198 GB, free: 1.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.18e-05/0.7243, allocations: 0 / 0.5198 GB, free: 1.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001485/0.7258, allocations: 451.8 kB / 0.5203 GB, free: 1.375 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005837/0.7317, allocations: 0.6393 MB / 0.5209 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.7453, allocations: 4.564 MB / 0.5254 GB, free: 12.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/0.748, allocations: 1.71 MB / 0.527 GB, free: 10.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000726/0.7488, allocations: 155.4 kB / 0.5272 GB, free: 10.23 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7488, allocations: 3.938 kB / 0.5272 GB, free: 10.23 MB / 462.1 MB Notification: Performance of Templates: time 0.4018/1.151, allocations: 39.22 MB / 0.5655 GB, free: 106.6 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches