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.0008493/0.0008493, allocations: 93.33 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001033/0.001033, allocations: 201.5 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002542, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1051, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.2031/0.3082, allocations: 14.61 MB / 374.5 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02385/0.3321, allocations: 20.69 MB / 395.2 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002665/0.3348, allocations: 30.59 kB / 395.2 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003942/0.3388, allocations: 1.126 MB / 396.4 MB, free: 264 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.3499, allocations: 1.963 MB / 398.3 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006339/0.3563, allocations: 1.203 MB / 399.5 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01147/0.3678, allocations: 6.563 MB / 406.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000945/0.3688, allocations: 437.9 kB / 406.5 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002097/0.3709, allocations: 1.073 MB / 407.6 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.3723, allocations: 1.105 MB / 408.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.3725, allocations: 48.94 kB / 408.7 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004827/0.3774, allocations: 1.466 MB / 410.2 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003632/0.3777, allocations: 301.5 kB / 410.5 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001756/0.3795, allocations: 1.418 MB / 411.9 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003025/0.3825, allocations: 2.878 MB / 414.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3826, allocations: 4 kB / 414.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3826, allocations: 0 / 414.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.331e-05/0.3826, allocations: 0 / 414.8 MB, free: 4.738 MB / 318.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.004769/0.3874, allocations: 3.338 MB / 418.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.3875, allocations: 8.031 kB / 418.2 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004036/0.3879, allocations: 411 kB / 418.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.3911, allocations: 2.491 MB / 421 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.3911, allocations: 37 kB / 421.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.3913, allocations: 51.91 kB / 421.1 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.3926, allocations: 0.7539 MB / 421.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.3927, allocations: 4 kB / 421.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.947e-05/0.3928, allocations: 19.98 kB / 421.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.3928, allocations: 23.98 kB / 421.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.3944, allocations: 0.8631 MB / 422.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005232/0.3996, allocations: 3.118 MB / 425.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00126/0.4009, allocations: 0.622 MB / 426.5 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.4019, allocations: 0.6755 MB / 427.2 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02894/0.4309, allocations: 30.8 MB / 458 MB, free: 5.031 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008084/0.4317, allocations: 385.6 kB / 458.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.916e-06/0.4318, allocations: 0 / 458.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002592/0.4344, allocations: 1.175 MB / 459.6 MB, free: 3.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.4344, allocations: 59.41 kB / 459.6 MB, free: 3.387 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005253/0.4397, allocations: 3.087 MB / 462.7 MB, free: 308 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.547e-05/0.4398, allocations: 33.7 kB / 462.7 MB, free: 268 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.4412, allocations: 1.576 MB / 464.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002272/0.4415, allocations: 169.7 kB / 464.5 MB, free: 14.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.4416, allocations: 73.67 kB / 464.5 MB, free: 14.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4417, allocations: 345.9 kB / 464.9 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006387/0.4424, allocations: 261.9 kB / 465.1 MB, free: 13.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008342/0.4432, allocations: 0.6216 MB / 465.8 MB, free: 13.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.4448, allocations: 0.9365 MB / 466.7 MB, free: 11.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/0.4448, allocations: 7.938 kB / 466.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002423/0.4473, allocations: 1.288 MB / 468 MB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.4473, allocations: 12 kB / 468 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.4474, allocations: 83.98 kB / 468.1 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.106e-05/0.4475, allocations: 16 kB / 468.1 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007229/0.4482, allocations: 219.9 kB / 468.3 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.223e-05/0.4482, allocations: 19.94 kB / 468.3 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/0.4494, allocations: 123 kB / 468.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.4496, allocations: 72 kB / 468.5 MB, free: 10.09 MB / 382.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.0008774/0.4504, allocations: 454.6 kB / 469 MB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005874/0.451, allocations: 399.1 kB / 469.4 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003202/0.4542, allocations: 1.254 MB / 470.6 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.4543, allocations: 4 kB / 470.6 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.4543, allocations: 0 / 470.6 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.4543, allocations: 3.984 kB / 470.6 MB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003991/0.4583, allocations: 2.182 MB / 472.8 MB, free: 5.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-05/0.4584, allocations: 68 kB / 472.9 MB, free: 5.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/0.4589, allocations: 103.9 kB / 473 MB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.4589, allocations: 7.984 kB / 473 MB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.459, allocations: 31.98 kB / 473 MB, free: 5.512 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.459, allocations: 4 kB / 473 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.459, allocations: 7.938 kB / 473 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002462/0.4615, allocations: 1.391 MB / 474.4 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008882/0.4624, allocations: 488 kB / 474.9 MB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004844/0.4629, allocations: 15.98 kB / 474.9 MB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000878/0.4638, allocations: 40.03 kB / 474.9 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.4639, allocations: 63.88 kB / 475 MB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.867e-05/0.464, allocations: 36 kB / 475 MB, free: 3.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003225/0.4672, allocations: 2.007 MB / 477.1 MB, free: 1.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4673, allocations: 0 / 477.1 MB, free: 1.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4688, allocations: 0.5934 MB / 477.6 MB, free: 0.8359 MB / 382.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.001245/0.4701, allocations: 0.7733 MB / 478.4 MB, free: 56 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.4721, allocations: 0.8491 MB / 479.3 MB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.4722, allocations: 4.125 kB / 479.3 MB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008652/0.473, allocations: 467.1 kB / 479.7 MB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003691/0.4767, allocations: 0.6056 MB / 480.3 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00825/0.485, allocations: 5.547 MB / 485.9 MB, free: 8.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.4866, allocations: 1.714 MB / 487.6 MB, free: 6.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003753/0.487, allocations: 151.4 kB / 487.7 MB, free: 6.609 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.487, allocations: 3.938 kB / 487.7 MB, free: 6.605 MB / 398.1 MB Notification: Performance of Templates: time 0.05757/0.5445, allocations: 38.08 MB / 0.5135 GB, free: 0.5977 MB / 430.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) "" Variables in the reference:time,mp1.S.v,mp2.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,time,v.p.v