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.0009424/0.0009424, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.7 MB / 246.8 MB, free: 9.566 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002264/0.0002265, allocations: 8 kB / 307.7 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08896/0.0892, allocations: 51.51 MB / 359.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1811/0.2704, allocations: 14.61 MB / 373.8 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01974/0.2901, allocations: 20.7 MB / 394.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.292, allocations: 30.47 kB / 394.6 MB, free: 500 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003579/0.2956, allocations: 1.122 MB / 395.7 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.307, allocations: 1.961 MB / 397.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006338/0.3134, allocations: 1.209 MB / 398.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0117/0.3251, allocations: 6.55 MB / 405.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007824/0.326, allocations: 456.7 kB / 405.9 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001657/0.3276, allocations: 1.07 MB / 406.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001108/0.3287, allocations: 1.111 MB / 408 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001449/0.3289, allocations: 41.19 kB / 408.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004186/0.3331, allocations: 1.463 MB / 409.5 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002789/0.3334, allocations: 306.9 kB / 409.8 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.3346, allocations: 1.422 MB / 411.3 MB, free: 7.543 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004074/0.3387, allocations: 3.82 MB / 415.1 MB, free: 3.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3387, allocations: 0 / 415.1 MB, free: 3.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3388, allocations: 0 / 415.1 MB, free: 3.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.087e-05/0.3388, allocations: 0 / 415.1 MB, free: 3.707 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.004936/0.3438, allocations: 3.334 MB / 418.4 MB, free: 304 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.3438, allocations: 12.03 kB / 418.4 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004121/0.3442, allocations: 415.1 kB / 418.8 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003367/0.3476, allocations: 2.494 MB / 421.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.3476, allocations: 33 kB / 421.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001316/0.3478, allocations: 55.91 kB / 421.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.3492, allocations: 0.746 MB / 422.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/0.3492, allocations: 0 / 422.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.5e-05/0.3493, allocations: 35.92 kB / 422.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.3493, allocations: 19.98 kB / 422.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001679/0.351, allocations: 0.8554 MB / 423.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005/0.356, allocations: 3.122 MB / 426.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.3573, allocations: 0.6181 MB / 426.8 MB, free: 7.723 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.3584, allocations: 0.6709 MB / 427.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02984/0.3882, allocations: 30.79 MB / 458.3 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008346/0.3891, allocations: 393.6 kB / 458.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.585e-06/0.3891, allocations: 0 / 458.7 MB, free: 3.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002512/0.3916, allocations: 1.171 MB / 459.8 MB, free: 2.434 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.3917, allocations: 63.41 kB / 459.9 MB, free: 2.359 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003733/0.3954, allocations: 3.083 MB / 463 MB, free: 15.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.091e-05/0.3955, allocations: 37.64 kB / 463 MB, free: 15.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.3968, allocations: 1.569 MB / 464.6 MB, free: 13.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.397, allocations: 177.7 kB / 464.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3971, allocations: 69.67 kB / 464.8 MB, free: 13.41 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3972, allocations: 341.9 kB / 465.1 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006103/0.3978, allocations: 261.9 kB / 465.4 MB, free: 12.81 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008352/0.3987, allocations: 0.6216 MB / 466 MB, free: 12.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.4002, allocations: 0.9404 MB / 467 MB, free: 10.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.4002, allocations: 7.938 kB / 467 MB, free: 10.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002168/0.4024, allocations: 1.292 MB / 468.3 MB, free: 9.594 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.4024, allocations: 12 kB / 468.3 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001135/0.4025, allocations: 83.98 kB / 468.4 MB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.4026, allocations: 16 kB / 468.4 MB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007448/0.4033, allocations: 218.8 kB / 468.6 MB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.342e-05/0.4034, allocations: 27.92 kB / 468.6 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009782/0.4043, allocations: 115 kB / 468.7 MB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.4045, allocations: 64 kB / 468.8 MB, free: 9.07 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.0007336/0.4052, allocations: 468.8 kB / 469.2 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003502/0.4056, allocations: 399.1 kB / 469.6 MB, free: 8.211 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00301/0.4086, allocations: 1.246 MB / 470.9 MB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.4086, allocations: 8 kB / 470.9 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4086, allocations: 0 / 470.9 MB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.4086, allocations: 3.984 kB / 470.9 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00323/0.4119, allocations: 2.182 MB / 473.1 MB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.386e-05/0.412, allocations: 75.94 kB / 473.2 MB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005114/0.4125, allocations: 103.9 kB / 473.3 MB, free: 4.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.4125, allocations: 4 kB / 473.3 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.4126, allocations: 35.98 kB / 473.3 MB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.4126, allocations: 3.938 kB / 473.3 MB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4126, allocations: 4 kB / 473.3 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.4149, allocations: 1.383 MB / 474.7 MB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006438/0.4155, allocations: 496 kB / 475.2 MB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002679/0.4158, allocations: 11.98 kB / 475.2 MB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000717/0.4165, allocations: 40.03 kB / 475.2 MB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.4167, allocations: 63.88 kB / 475.3 MB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.4168, allocations: 36 kB / 475.3 MB, free: 2.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002467/0.4192, allocations: 2.014 MB / 477.3 MB, free: 404 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4193, allocations: 0 / 477.3 MB, free: 404 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.001284/0.4205, allocations: 0.5895 MB / 477.9 MB, free: 15.8 MB / 398.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.001069/0.4216, allocations: 0.7816 MB / 478.7 MB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001642/0.4233, allocations: 0.8491 MB / 479.6 MB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.4233, allocations: 0 / 479.6 MB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008094/0.4241, allocations: 463.2 kB / 480 MB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00295/0.4271, allocations: 0.6066 MB / 480.6 MB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006805/0.4339, allocations: 5.485 MB / 486.1 MB, free: 7.531 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001134/0.435, allocations: 1.71 MB / 487.8 MB, free: 5.793 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001394/0.4364, allocations: 361.3 kB / 488.2 MB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00022/0.4367, allocations: 151.4 kB / 488.3 MB, free: 5.285 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4367, allocations: 4 kB / 488.3 MB, free: 5.281 MB / 398.1 MB Notification: Performance of Templates: time 0.05499/0.4917, allocations: 30.85 MB / 0.507 GB, free: 6.578 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/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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches