Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001403/0.001403, allocations: 182.5 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.27/1.27, allocations: 205.4 MB / 224.2 MB, free: 9.051 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007602/0.0007602, allocations: 81.67 kB / 272.5 MB, free: 8.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002886/0.0002887, allocations: 20 kB / 329.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1858, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.2862, allocations: 102.4 MB / 479.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.2865, allocations: 71.97 kB / 479.5 MB, free: 10.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3488/0.6353, allocations: 125.4 MB / 0.5907 GB, free: 24.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6353, allocations: 0 / 0.5907 GB, free: 24.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001576/0.6355, allocations: 48 kB / 0.5907 GB, free: 24.79 MB / 378.7 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.00526/0.6407, allocations: 3.532 MB / 0.5942 GB, free: 21.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.6408, allocations: 8.031 kB / 0.5942 GB, free: 21.17 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004646/0.6413, allocations: 414.9 kB / 0.5946 GB, free: 20.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003537/0.6448, allocations: 2.655 MB / 0.5972 GB, free: 18.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.6449, allocations: 37 kB / 0.5972 GB, free: 18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.645, allocations: 59.92 kB / 0.5973 GB, free: 17.94 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.6462, allocations: 0.8612 MB / 0.5981 GB, free: 17.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.6462, allocations: 0 / 0.5981 GB, free: 17.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.778e-05/0.6463, allocations: 24 kB / 0.5982 GB, free: 17.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.6463, allocations: 19.98 kB / 0.5982 GB, free: 17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.6477, allocations: 0.8593 MB / 0.599 GB, free: 16.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004583/0.6523, allocations: 3.263 MB / 0.6022 GB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009968/0.6533, allocations: 0.6219 MB / 0.6028 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008389/0.6541, allocations: 0.6633 MB / 0.6035 GB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03212/0.6862, allocations: 35.81 MB / 0.6384 GB, free: 2.539 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007877/0.6871, allocations: 389.4 kB / 0.6388 GB, free: 2.148 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.845e-06/0.6871, allocations: 0 / 0.6388 GB, free: 2.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002411/0.6895, allocations: 1.179 MB / 0.6399 GB, free: 0.957 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.6897, allocations: 265 kB / 0.6402 GB, free: 0.6367 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004797/0.6945, allocations: 3.193 MB / 0.6433 GB, free: 13.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.388e-05/0.6945, allocations: 37.7 kB / 0.6434 GB, free: 13.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001368/0.6959, allocations: 1.577 MB / 0.6449 GB, free: 11.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.6961, allocations: 169.6 kB / 0.6451 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.344e-05/0.6962, allocations: 16 kB / 0.6451 GB, free: 11.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6963, allocations: 341.9 kB / 0.6454 GB, free: 11.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006093/0.6969, allocations: 265.9 kB / 0.6457 GB, free: 11.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008737/0.6978, allocations: 0.6712 MB / 0.6463 GB, free: 10.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001481/0.6993, allocations: 0.9403 MB / 0.6472 GB, free: 9.055 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.6993, allocations: 4 kB / 0.6472 GB, free: 9.051 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002241/0.7016, allocations: 1.284 MB / 0.6485 GB, free: 7.754 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.7016, allocations: 16.12 kB / 0.6485 GB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.7017, allocations: 84 kB / 0.6486 GB, free: 7.656 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/0.7017, allocations: 16 kB / 0.6486 GB, free: 7.641 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007682/0.7025, allocations: 215.6 kB / 0.6488 GB, free: 7.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.574e-05/0.7026, allocations: 23.92 kB / 0.6488 GB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.7038, allocations: 130.9 kB / 0.6489 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.7039, allocations: 64 kB / 0.649 GB, free: 7.215 MB / 426.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008374/0.7048, allocations: 465.4 kB / 0.6495 GB, free: 6.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004435/0.7052, allocations: 399.1 kB / 0.6498 GB, free: 6.355 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00306/0.7083, allocations: 1.262 MB / 0.6511 GB, free: 5.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.7083, allocations: 4 kB / 0.6511 GB, free: 5.086 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.7083, allocations: 0 / 0.6511 GB, free: 5.086 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.7083, allocations: 3.984 kB / 0.6511 GB, free: 5.082 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003751/0.7121, allocations: 2.319 MB / 0.6533 GB, free: 2.691 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.622e-05/0.7122, allocations: 71.98 kB / 0.6534 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004914/0.7127, allocations: 107.9 kB / 0.6535 GB, free: 2.516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.7127, allocations: 4 kB / 0.6535 GB, free: 2.512 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.7128, allocations: 28 kB / 0.6535 GB, free: 2.484 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.718e-06/0.7128, allocations: 3.984 kB / 0.6535 GB, free: 2.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.7128, allocations: 15.88 kB / 0.6536 GB, free: 2.465 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002297/0.7151, allocations: 1.376 MB / 0.6549 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.7161, allocations: 0.5077 MB / 0.6554 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004132/0.7165, allocations: 19.94 kB / 0.6554 GB, free: 0.5117 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007833/0.7173, allocations: 48 kB / 0.6555 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.7175, allocations: 67.88 kB / 0.6555 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/0.7176, allocations: 36 kB / 0.6556 GB, free: 372 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.1656/0.8832, allocations: 2.069 MB / 0.6576 GB, free: 97.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8833, allocations: 0 / 0.6576 GB, free: 97.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001757/0.885, allocations: 0.6591 MB / 0.6582 GB, free: 97.37 MB / 426.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001065/0.8861, allocations: 0.8915 MB / 0.6591 GB, free: 97.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.8875, allocations: 0.8484 MB / 0.6599 GB, free: 97.14 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.8875, allocations: 0 / 0.6599 GB, free: 97.14 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006415/0.8882, allocations: 467.5 kB / 0.6604 GB, free: 97.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.8904, allocations: 0.5121 MB / 0.6609 GB, free: 96.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005402/0.8959, allocations: 5.153 MB / 0.6659 GB, free: 94.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.8969, allocations: 1.72 MB / 0.6676 GB, free: 93.87 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001548/0.8984, allocations: 379.3 kB / 0.6679 GB, free: 93.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.8987, allocations: 163.6 kB / 0.6681 GB, free: 93.84 MB / 426.7 MB Notification: Performance of SimCode: time 6.21e-07/0.8987, allocations: 0 / 0.6681 GB, free: 93.84 MB / 426.7 MB Notification: Performance of Templates: time 0.05096/0.9497, allocations: 34.78 MB / 0.7021 GB, free: 90.51 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches