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.001138/0.001138, allocations: 110.5 kB / 17.93 MB, free: 5.676 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.001164/0.001164, allocations: 193.8 kB / 18.86 MB, free: 4.754 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.415/1.415, allocations: 205.1 MB / 224.7 MB, free: 12.29 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.001132/0.001132, allocations: 44.39 kB / 280.8 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08057/0.08172, allocations: 46.64 MB / 327.4 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01265/0.09441, allocations: 14.47 MB / 341.9 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02034/0.1148, allocations: 19.55 MB / 361.4 MB, free: 2.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002218/0.1171, allocations: 31.81 kB / 361.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003169/0.1203, allocations: 1.075 MB / 362.6 MB, free: 1.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007072/0.1274, allocations: 1.996 MB / 364.5 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004527/0.1319, allocations: 1.211 MB / 365.8 MB, free: 14.28 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0117/0.1436, allocations: 6.526 MB / 372.3 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.1449, allocations: 465.6 kB / 372.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00218/0.1471, allocations: 1.011 MB / 373.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001604/0.1487, allocations: 1.122 MB / 374.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001713/0.1489, allocations: 76 kB / 374.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.1523, allocations: 1.152 MB / 376.1 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003601/0.1527, allocations: 341.5 kB / 376.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001302/0.154, allocations: 1.451 MB / 377.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1558/0.3098, allocations: 2.981 MB / 380.9 MB, free: 24.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.443e-06/0.3098, allocations: 1.281 kB / 380.9 MB, free: 24.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3098, allocations: 1.125 kB / 380.9 MB, free: 24.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001342/0.31, allocations: 2.812 kB / 380.9 MB, free: 24.12 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.006093/0.3161, allocations: 3.858 MB / 384.7 MB, free: 21.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3161, allocations: 9.312 kB / 384.7 MB, free: 21.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004513/0.3166, allocations: 418.8 kB / 385.1 MB, free: 21.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003321/0.3199, allocations: 2.502 MB / 387.6 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.937e-05/0.32, allocations: 38.91 kB / 387.7 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.3201, allocations: 56.47 kB / 387.7 MB, free: 20.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.3214, allocations: 0.7322 MB / 388.5 MB, free: 20.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3214, allocations: 1.078 kB / 388.5 MB, free: 20.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.107e-05/0.3215, allocations: 23.08 kB / 388.5 MB, free: 20.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.3215, allocations: 19.16 kB / 388.5 MB, free: 20.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.3229, allocations: 0.8154 MB / 389.3 MB, free: 20.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004588/0.3275, allocations: 3.112 MB / 392.4 MB, free: 20.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.3286, allocations: 0.5833 MB / 393 MB, free: 20.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008407/0.3294, allocations: 0.6437 MB / 393.7 MB, free: 20.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02177/0.3512, allocations: 30.2 MB / 423.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007217/0.352, allocations: 364.7 kB / 424.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.304e-06/0.352, allocations: 0 / 424.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002297/0.3543, allocations: 1.116 MB / 425.3 MB, free: 9.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.901e-05/0.3544, allocations: 63.39 kB / 425.4 MB, free: 8.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00363/0.358, allocations: 3.104 MB / 428.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.874e-05/0.3581, allocations: 41.7 kB / 428.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.3593, allocations: 1.572 MB / 430.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.3595, allocations: 168.4 kB / 430.3 MB, free: 4.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.3598, allocations: 230.1 kB / 430.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3599, allocations: 337 kB / 430.8 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000541/0.3605, allocations: 253.8 kB / 431.1 MB, free: 3.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007522/0.3612, allocations: 0.5961 MB / 431.7 MB, free: 2.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001296/0.3626, allocations: 0.8974 MB / 432.6 MB, free: 1.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.3626, allocations: 4 kB / 432.6 MB, free: 1.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002095/0.3647, allocations: 1.247 MB / 433.8 MB, free: 312 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.3647, allocations: 12 kB / 433.8 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.713e-05/0.3648, allocations: 80.91 kB / 433.9 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.005e-05/0.3648, allocations: 19.94 kB / 433.9 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.3655, allocations: 206.5 kB / 434.1 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-05/0.3656, allocations: 23.59 kB / 434.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.3667, allocations: 108.5 kB / 434.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001017/0.3668, allocations: 68.94 kB / 434.3 MB, free: 15.82 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.0006814/0.3675, allocations: 459.9 kB / 434.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000369/0.3679, allocations: 399.1 kB / 435.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00271/0.3706, allocations: 1.223 MB / 436.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.3706, allocations: 8 kB / 436.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.3706, allocations: 0 / 436.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3706, allocations: 0 / 436.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003085/0.3737, allocations: 2.154 MB / 438.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.662e-05/0.3738, allocations: 72 kB / 438.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004438/0.3743, allocations: 101.6 kB / 438.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3743, allocations: 2.906 kB / 438.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.499e-05/0.3743, allocations: 32 kB / 438.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3743, allocations: 1.75 kB / 438.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3743, allocations: 3.938 kB / 438.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002031/0.3764, allocations: 1.328 MB / 440.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006703/0.3771, allocations: 492 kB / 440.6 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003111/0.3774, allocations: 20.05 kB / 440.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006602/0.3781, allocations: 27.97 kB / 440.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3782, allocations: 59.94 kB / 440.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.403e-05/0.3783, allocations: 36 kB / 440.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002163/0.3804, allocations: 2.025 MB / 442.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3805, allocations: 0 / 442.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001237/0.3817, allocations: 0.5934 MB / 443.3 MB, free: 6.754 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.0009901/0.3827, allocations: 0.7887 MB / 444.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.3842, allocations: 0.828 MB / 445 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3843, allocations: 4 kB / 445 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006922/0.3849, allocations: 449.8 kB / 445.4 MB, free: 4.836 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.3867, allocations: 0.5353 MB / 445.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006119/0.3928, allocations: 5.507 MB / 451.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/0.3938, allocations: 1.718 MB / 453.2 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.3941, allocations: 155.4 kB / 453.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3941, allocations: 0 / 453.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of Templates: time 0.04955/0.4436, allocations: 38.6 MB / 491.9 MB, free: 6.32 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 -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","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches