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.0007865/0.0007865, allocations: 96.09 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009419/0.0009423, allocations: 199.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.2 MB / 245.9 MB, free: 12.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003625, allocations: 8 kB / 306.6 MB, free: 1.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 51.48 MB / 358 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.0106/0.1138, allocations: 12.3 MB / 370.3 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1743/0.2882, allocations: 17.92 MB / 388.3 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.2897, allocations: 30.16 kB / 388.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00283/0.2925, allocations: 1.016 MB / 389.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00721/0.2998, allocations: 2.124 MB / 391.4 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005064/0.3049, allocations: 1.195 MB / 392.6 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01188/0.3168, allocations: 6.275 MB / 398.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.3179, allocations: 430 kB / 399.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.3199, allocations: 0.9821 MB / 400.3 MB, free: 15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.3214, allocations: 1.045 MB / 401.4 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.3215, allocations: 42.09 kB / 401.4 MB, free: 14.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005154/0.3267, allocations: 1.446 MB / 402.8 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004132/0.3271, allocations: 279.7 kB / 403.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009545/0.3281, allocations: 0.6513 MB / 403.8 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.3311, allocations: 2.773 MB / 406.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3311, allocations: 0 / 406.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3311, allocations: 0 / 406.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.096e-05/0.3311, allocations: 0 / 406.5 MB, free: 11.41 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.005299/0.3364, allocations: 3.365 MB / 409.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3365, allocations: 8.031 kB / 409.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004586/0.337, allocations: 414.9 kB / 410.3 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003813/0.3408, allocations: 2.3 MB / 412.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.3408, allocations: 40.95 kB / 412.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.341, allocations: 51.91 kB / 412.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.3423, allocations: 0.746 MB / 413.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.3424, allocations: 0 / 413.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.161e-05/0.3424, allocations: 23.94 kB / 413.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.102e-05/0.3425, allocations: 23.98 kB / 413.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.344, allocations: 0.8554 MB / 414.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005149/0.3492, allocations: 3.114 MB / 417.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.3504, allocations: 0.6112 MB / 418.1 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02967/0.3801, allocations: 30.92 MB / 449 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007336/0.3808, allocations: 389.4 kB / 449.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.3809, allocations: 0 / 449.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00248/0.3833, allocations: 1.482 MB / 450.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.3834, allocations: 67.14 kB / 450.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003749/0.3872, allocations: 3.051 MB / 454 MB, free: 7.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.996e-05/0.3873, allocations: 37.7 kB / 454 MB, free: 7.812 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.3886, allocations: 1.569 MB / 455.6 MB, free: 6.234 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.3887, allocations: 169.7 kB / 455.8 MB, free: 6.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.3888, allocations: 19.94 kB / 455.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.3889, allocations: 337.9 kB / 456.1 MB, free: 5.711 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006061/0.3895, allocations: 257.9 kB / 456.4 MB, free: 5.461 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007903/0.3903, allocations: 0.6216 MB / 457 MB, free: 4.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006676/0.391, allocations: 340.5 kB / 457.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.391, allocations: 4 kB / 457.3 MB, free: 4.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002244/0.3933, allocations: 1.276 MB / 458.6 MB, free: 3.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.337e-05/0.3933, allocations: 8 kB / 458.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/0.3934, allocations: 87.97 kB / 458.7 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.029e-05/0.3935, allocations: 24.66 kB / 458.7 MB, free: 2.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007281/0.3942, allocations: 211.7 kB / 458.9 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.699e-05/0.3942, allocations: 31.83 kB / 458.9 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.3954, allocations: 133.2 kB / 459.1 MB, free: 2.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.3955, allocations: 67.94 kB / 459.1 MB, free: 2.488 MB / 366.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 ($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.0008125/0.3963, allocations: 449.2 kB / 459.6 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004208/0.3967, allocations: 395.1 kB / 460 MB, free: 1.652 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003083/0.3998, allocations: 1.273 MB / 461.2 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.3998, allocations: 4 kB / 461.2 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3999, allocations: 0 / 461.2 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.3999, allocations: 3.953 kB / 461.2 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003743/0.4036, allocations: 2.174 MB / 463.4 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.815e-05/0.4037, allocations: 71.98 kB / 463.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.4042, allocations: 107.9 kB / 463.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.4043, allocations: 0 / 463.6 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.605e-05/0.4043, allocations: 35.94 kB / 463.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.4043, allocations: 4 kB / 463.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4043, allocations: 0 / 463.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002309/0.4066, allocations: 1.446 MB / 465.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008955/0.4076, allocations: 488.1 kB / 465.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003108/0.4079, allocations: 8 kB / 465.6 MB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/0.4085, allocations: 40.03 kB / 465.6 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4087, allocations: 59.94 kB / 465.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.049e-05/0.4088, allocations: 43.11 kB / 465.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002491/0.4113, allocations: 1.971 MB / 467.7 MB, free: 9.797 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4113, allocations: 0 / 467.7 MB, free: 9.797 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001444/0.4127, allocations: 0.5971 MB / 468.3 MB, free: 9.199 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 (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.0009208/0.4137, allocations: 0.7392 MB / 469 MB, free: 8.461 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001544/0.4152, allocations: 0.8492 MB / 469.9 MB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4152, allocations: 4.125 kB / 469.9 MB, free: 7.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007597/0.416, allocations: 471.1 kB / 470.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0025/0.4185, allocations: 0.6044 MB / 470.9 MB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006263/0.4248, allocations: 5.103 MB / 476 MB, free: 1.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.4259, allocations: 1.769 MB / 477.8 MB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001279/0.4272, allocations: 365.3 kB / 478.2 MB, free: 15.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.4275, allocations: 151.4 kB / 478.3 MB, free: 15.04 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4275, allocations: 3.938 kB / 478.3 MB, free: 15.04 MB / 398.1 MB Notification: Performance of Templates: time 0.04898/0.4764, allocations: 29.23 MB / 0.4956 GB, free: 1.961 MB / 414.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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches