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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 120.2 kB / 21.94 MB, free: 8 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002107/0.002107, allocations: 204.7 kB / 25.23 MB, free: 3.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.516/1.516, allocations: 207.6 MB / 236 MB, free: 9.988 MB / 190.1 MB " [Timeout remaining time 178] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001833/0.001833, allocations: 55.92 kB / 348.4 MB, free: 9.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2611, allocations: 49.17 MB / 397.6 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01249/0.2736, allocations: 14.67 MB / 412.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02833/0.3019, allocations: 19.87 MB / 432.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003329/0.3052, allocations: 142.7 kB / 432.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004564/0.3098, allocations: 1.235 MB / 433.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00969/0.3195, allocations: 2.381 MB / 435.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005791/0.3253, allocations: 1.404 MB / 437.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01259/0.3379, allocations: 6.51 MB / 443.8 MB, free: 5.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008326/0.3387, allocations: 278.3 kB / 444.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002024/0.3407, allocations: 1.073 MB / 445.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001974/0.3427, allocations: 1.126 MB / 446.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002395/0.3429, allocations: 76 kB / 446.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004645/0.3476, allocations: 1.159 MB / 447.5 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005416/0.3481, allocations: 341.5 kB / 447.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002177/0.3503, allocations: 1.436 MB / 449.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008196/0.3585, allocations: 4.025 MB / 453.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.3585, allocations: 7.984 kB / 453.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3585, allocations: 0 / 453.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.527e-05/0.3586, allocations: 0 / 453.3 MB, free: 11.44 MB / 366.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.006863/0.3655, allocations: 3.902 MB / 457.2 MB, free: 7.473 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.3655, allocations: 19.98 kB / 457.2 MB, free: 7.453 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006205/0.3661, allocations: 433.2 kB / 457.7 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004588/0.3707, allocations: 2.369 MB / 460 MB, free: 4.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/0.3708, allocations: 36.94 kB / 460.1 MB, free: 4.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001759/0.3709, allocations: 59.94 kB / 460.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.3725, allocations: 0.7343 MB / 460.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.3725, allocations: 4 kB / 460.9 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.113e-05/0.3726, allocations: 23.94 kB / 460.9 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.558e-05/0.3726, allocations: 19.98 kB / 460.9 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.3743, allocations: 0.8202 MB / 461.7 MB, free: 2.863 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005973/0.3802, allocations: 3.055 MB / 464.8 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3814, allocations: 0.5203 MB / 465.3 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.3825, allocations: 0.5769 MB / 465.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02786/0.4103, allocations: 13.81 MB / 479.7 MB, free: 444 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008059/0.4111, allocations: 369.6 kB / 480.1 MB, free: 56 kB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.976e-06/0.4111, allocations: 0 / 480.1 MB, free: 56 kB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.002508/0.4136, allocations: 1.13 MB / 481.2 MB, free: 14.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/0.4137, allocations: 63.39 kB / 481.2 MB, free: 14.85 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004365/0.4181, allocations: 3.104 MB / 484.4 MB, free: 11.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001214/0.4182, allocations: 41.69 kB / 484.4 MB, free: 11.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001593/0.4198, allocations: 1.586 MB / 486 MB, free: 10.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002245/0.42, allocations: 178.6 kB / 486.2 MB, free: 9.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003985/0.4204, allocations: 230.4 kB / 486.4 MB, free: 9.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.4206, allocations: 337.9 kB / 486.7 MB, free: 9.359 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005883/0.4212, allocations: 237.9 kB / 486.9 MB, free: 9.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008805/0.422, allocations: 0.6057 MB / 487.5 MB, free: 8.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00151/0.4235, allocations: 0.9013 MB / 488.4 MB, free: 7.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.956e-06/0.4236, allocations: 4 kB / 488.5 MB, free: 7.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002421/0.426, allocations: 1.27 MB / 489.7 MB, free: 5.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.426, allocations: 8 kB / 489.7 MB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/0.4261, allocations: 84 kB / 489.8 MB, free: 5.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.927e-05/0.4262, allocations: 16 kB / 489.8 MB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/0.4269, allocations: 208.2 kB / 490 MB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-05/0.4269, allocations: 23.92 kB / 490.1 MB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.428, allocations: 107.3 kB / 490.2 MB, free: 5.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.4282, allocations: 64 kB / 490.2 MB, free: 5.488 MB / 398.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.0008644/0.429, allocations: 457.4 kB / 490.7 MB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004742/0.4295, allocations: 429.3 kB / 491.1 MB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002788/0.4323, allocations: 1.215 MB / 492.3 MB, free: 3.383 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.4323, allocations: 7.984 kB / 492.3 MB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.85e-06/0.4323, allocations: 4 kB / 492.3 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4323, allocations: 4 kB / 492.3 MB, free: 3.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003792/0.4361, allocations: 2.123 MB / 494.4 MB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001085/0.4362, allocations: 68 kB / 494.5 MB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004977/0.4367, allocations: 99.8 kB / 494.6 MB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.4367, allocations: 0 / 494.6 MB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.32e-05/0.4368, allocations: 31.98 kB / 494.6 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.4368, allocations: 8.062 kB / 494.6 MB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.4368, allocations: 0 / 494.6 MB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002581/0.4394, allocations: 1.344 MB / 496 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009834/0.4404, allocations: 439 kB / 496.4 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003131/0.4407, allocations: 15.98 kB / 496.4 MB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000675/0.4413, allocations: 32.03 kB / 496.5 MB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001592/0.4415, allocations: 67.86 kB / 496.5 MB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.301e-05/0.4416, allocations: 39.94 kB / 496.6 MB, free: 15.03 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002947/0.4445, allocations: 2.023 MB / 498.6 MB, free: 13.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4445, allocations: 0 / 498.6 MB, free: 13.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001517/0.446, allocations: 0.6008 MB / 499.2 MB, free: 12.41 MB / 414.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.001225/0.4473, allocations: 0.7763 MB / 500 MB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.449, allocations: 0.7742 MB / 0.489 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.449, allocations: 4 kB / 0.489 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008185/0.4499, allocations: 428 kB / 0.4894 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/0.4519, allocations: 0.5383 MB / 0.4899 GB, free: 9.836 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007592/0.4595, allocations: 4.688 MB / 0.4945 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/0.4609, allocations: 1.718 MB / 0.4962 GB, free: 3.348 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003748/0.4613, allocations: 159.4 kB / 0.4964 GB, free: 3.191 MB / 414.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4613, allocations: 0 / 0.4964 GB, free: 3.191 MB / 414.1 MB Notification: Performance of Templates: time 0.06341/0.5247, allocations: 39.03 MB / 0.5345 GB, free: 12.09 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.17686853907071]