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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 108.4 kB / 18.36 MB, free: 4.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001144, allocations: 187 kB / 19.29 MB, free: 3.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001214, allocations: 59.92 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09608, allocations: 46.62 MB / 328.7 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01391/0.11, allocations: 14.62 MB / 343.3 MB, free: 5.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02349/0.1336, allocations: 19.8 MB / 363.1 MB, free: 1.219 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00276/0.1364, allocations: 95.19 kB / 363.2 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003112/0.1395, allocations: 1.224 MB / 364.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007928/0.1475, allocations: 2.312 MB / 366.8 MB, free: 13.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005167/0.1527, allocations: 1.392 MB / 368.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.1631, allocations: 6.461 MB / 374.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007854/0.1639, allocations: 473.6 kB / 375.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.1653, allocations: 1.018 MB / 376.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.1666, allocations: 1.114 MB / 377.2 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001618/0.1667, allocations: 76 kB / 377.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00363/0.1704, allocations: 1.163 MB / 378.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003519/0.1708, allocations: 341.5 kB / 378.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001527/0.1723, allocations: 1.44 MB / 380.2 MB, free: 20 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1583/0.3306, allocations: 3.995 MB / 384.2 MB, free: 20.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3306, allocations: 3.938 kB / 384.2 MB, free: 20.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3306, allocations: 1.375 kB / 384.2 MB, free: 20.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001559/0.3308, allocations: 0 / 384.2 MB, free: 20.16 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.006478/0.3373, allocations: 3.843 MB / 388.1 MB, free: 17.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.3373, allocations: 10.41 kB / 388.1 MB, free: 17.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004711/0.3378, allocations: 416.2 kB / 388.5 MB, free: 17.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003353/0.3412, allocations: 2.484 MB / 391 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.894e-05/0.3412, allocations: 38.5 kB / 391 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.3414, allocations: 51.44 kB / 391.1 MB, free: 16.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.3426, allocations: 0.7321 MB / 391.8 MB, free: 16.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3427, allocations: 0.9375 kB / 391.8 MB, free: 16.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.866e-05/0.3427, allocations: 21.81 kB / 391.8 MB, free: 16.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.3428, allocations: 19.8 kB / 391.8 MB, free: 16.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.3443, allocations: 0.8246 MB / 392.7 MB, free: 16.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004907/0.3492, allocations: 3.105 MB / 395.8 MB, free: 16.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.3503, allocations: 0.5763 MB / 396.3 MB, free: 16.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009599/0.3512, allocations: 0.6474 MB / 397 MB, free: 16.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0271/0.3783, allocations: 30.19 MB / 427.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007799/0.3792, allocations: 369.4 kB / 427.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 4.097e-06/0.3792, allocations: 0 / 427.5 MB, free: 6.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002399/0.3816, allocations: 1.114 MB / 428.6 MB, free: 5.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3817, allocations: 63.41 kB / 428.7 MB, free: 5.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003878/0.3856, allocations: 3.104 MB / 431.8 MB, free: 2.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.02e-05/0.3856, allocations: 37.69 kB / 431.9 MB, free: 2.031 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.3869, allocations: 1.576 MB / 433.4 MB, free: 456 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.387, allocations: 168 kB / 433.6 MB, free: 292 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002995/0.3873, allocations: 230.1 kB / 433.8 MB, free: 56 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3875, allocations: 341.9 kB / 434.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005457/0.388, allocations: 241.9 kB / 434.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007661/0.3888, allocations: 0.598 MB / 435 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001351/0.3902, allocations: 0.8999 MB / 435.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3902, allocations: 9.406 kB / 435.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002138/0.3923, allocations: 1.249 MB / 437.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3924, allocations: 12.19 kB / 437.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.3925, allocations: 84 kB / 437.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.3925, allocations: 20 kB / 437.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006944/0.3932, allocations: 202.9 kB / 437.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.225e-05/0.3933, allocations: 23.45 kB / 437.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.3946, allocations: 107.1 kB / 437.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.3947, allocations: 68 kB / 437.6 MB, free: 12.02 MB / 350.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.0006934/0.3954, allocations: 455.1 kB / 438.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003727/0.3958, allocations: 407 kB / 438.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002557/0.3984, allocations: 1.217 MB / 439.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.3984, allocations: 7.984 kB / 439.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3984, allocations: 0 / 439.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.3984, allocations: 0 / 439.7 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003761/0.4022, allocations: 2.152 MB / 441.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.462e-05/0.4023, allocations: 71 kB / 441.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004442/0.4027, allocations: 98.61 kB / 442 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.4027, allocations: 4 kB / 442 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/0.4028, allocations: 31.98 kB / 442.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.4028, allocations: 4 kB / 442.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4028, allocations: 0 / 442.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.405, allocations: 1.333 MB / 443.4 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009121/0.4059, allocations: 492 kB / 443.9 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.4062, allocations: 12 kB / 443.9 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/0.4069, allocations: 27.95 kB / 443.9 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.407, allocations: 59.95 kB / 444 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.992e-05/0.4071, allocations: 39.98 kB / 444 MB, free: 5.566 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002339/0.4095, allocations: 2.019 MB / 446 MB, free: 3.555 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4095, allocations: 6.688 kB / 446 MB, free: 3.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001372/0.4108, allocations: 0.6089 MB / 446.7 MB, free: 2.941 MB / 350.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.001052/0.4119, allocations: 0.7759 MB / 447.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.4134, allocations: 0.8246 MB / 448.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4134, allocations: 0 / 448.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.4142, allocations: 445.2 kB / 448.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.416, allocations: 0.5412 MB / 449.2 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006412/0.4224, allocations: 4.51 MB / 453.7 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.4236, allocations: 1.714 MB / 455.5 MB, free: 10.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009227/0.4245, allocations: 361.4 kB / 455.8 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.4247, allocations: 159.4 kB / 456 MB, free: 9.727 MB / 366.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4247, allocations: 0 / 456 MB, free: 9.727 MB / 366.1 MB Notification: Performance of Templates: time 0.05266/0.4774, allocations: 32.06 MB / 488 MB, free: 9.789 MB / 398.1 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 -s cvode -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","/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) Reference file matches