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.001124/0.001124, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001186/0.001186, allocations: 192.1 kB / 19.28 MB, free: 3.766 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.396/1.396, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001188/0.001188, allocations: 47.94 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0791/0.0803, 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.01263/0.09298, allocations: 14.62 MB / 343.3 MB, free: 5.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02033/0.1133, allocations: 19.8 MB / 363.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001569/0.115, allocations: 91.25 kB / 363.2 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002702/0.1177, allocations: 1.228 MB / 364.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006521/0.1242, allocations: 2.304 MB / 366.7 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004062/0.1283, allocations: 1.393 MB / 368.1 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.1387, allocations: 6.457 MB / 374.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000865/0.1396, allocations: 477.6 kB / 375.1 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.1411, allocations: 1.018 MB / 376.1 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001179/0.1423, allocations: 1.118 MB / 377.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001698/0.1425, allocations: 76 kB / 377.3 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003348/0.1458, allocations: 1.159 MB / 378.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.1461, allocations: 341.5 kB / 378.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.1474, allocations: 1.444 MB / 380.2 MB, free: 12 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1378/0.2853, allocations: 3.994 MB / 384.2 MB, free: 20.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2853, allocations: 0 / 384.2 MB, free: 20.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2853, allocations: 1.156 kB / 384.2 MB, free: 20.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.446e-05/0.2854, allocations: 0 / 384.2 MB, free: 20.17 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.00509/0.2905, allocations: 3.842 MB / 388 MB, free: 17.99 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.2905, allocations: 13.06 kB / 388.1 MB, free: 17.99 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003931/0.2909, allocations: 414.2 kB / 388.5 MB, free: 17.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.294, allocations: 2.486 MB / 391 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.294, allocations: 41.97 kB / 391 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.2941, allocations: 55.42 kB / 391 MB, free: 16.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.2953, allocations: 0.7277 MB / 391.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.2954, allocations: 0 / 391.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.686e-05/0.2954, allocations: 18.12 kB / 391.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.2955, allocations: 27.44 kB / 391.8 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.2969, allocations: 0.8186 MB / 392.6 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004684/0.3016, allocations: 3.105 MB / 395.7 MB, free: 16.35 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.3026, allocations: 0.5764 MB / 396.3 MB, free: 16.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008196/0.3035, allocations: 0.6476 MB / 397 MB, free: 16.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02534/0.3288, allocations: 30.19 MB / 427.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007224/0.3296, allocations: 364.6 kB / 427.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.605e-06/0.3296, allocations: 0 / 427.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002169/0.3318, allocations: 1.116 MB / 428.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.026e-05/0.3318, allocations: 60.7 kB / 428.7 MB, free: 5.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003819/0.3356, allocations: 3.108 MB / 431.8 MB, free: 2.078 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.622e-05/0.3357, allocations: 36.33 kB / 431.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.337, allocations: 1.572 MB / 433.4 MB, free: 468 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.3372, allocations: 173.4 kB / 433.6 MB, free: 296 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.3375, allocations: 230.1 kB / 433.8 MB, free: 60 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.3377, allocations: 334 kB / 434.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005383/0.3382, allocations: 249.8 kB / 434.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007462/0.339, allocations: 0.6011 MB / 435 MB, free: 14.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3403, allocations: 0.9033 MB / 435.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/0.3403, allocations: 4 kB / 435.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001985/0.3423, allocations: 1.252 MB / 437.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.3423, allocations: 8 kB / 437.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001051/0.3424, allocations: 80 kB / 437.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.571e-05/0.3425, allocations: 20 kB / 437.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006772/0.3431, allocations: 200.7 kB / 437.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.211e-05/0.3432, allocations: 26.17 kB / 437.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001209/0.3444, allocations: 109.8 kB / 437.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001105/0.3445, allocations: 64 kB / 437.6 MB, free: 12.03 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.0006693/0.3452, allocations: 462.8 kB / 438.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.3456, allocations: 403.1 kB / 438.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002437/0.348, allocations: 1.22 MB / 439.7 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.348, allocations: 4 kB / 439.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.348, allocations: 0 / 439.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.3481, allocations: 0 / 439.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003491/0.3515, allocations: 2.157 MB / 441.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.005e-05/0.3517, allocations: 68 kB / 441.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004546/0.3521, allocations: 102 kB / 442 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.3521, allocations: 4 kB / 442 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.575e-05/0.3522, allocations: 29.88 kB / 442.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.3522, allocations: 4 kB / 442.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3522, allocations: 0 / 442.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002128/0.3543, allocations: 1.331 MB / 443.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009193/0.3553, allocations: 496 kB / 443.9 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003191/0.3556, allocations: 15.98 kB / 443.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007129/0.3563, allocations: 23.97 kB / 443.9 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.3565, allocations: 63.94 kB / 444 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.141e-05/0.3566, allocations: 36 kB / 444 MB, free: 5.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002302/0.3589, allocations: 2.031 MB / 446 MB, free: 3.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3589, allocations: 0 / 446 MB, free: 3.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001328/0.3602, allocations: 0.5972 MB / 446.6 MB, free: 2.953 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.001023/0.3612, allocations: 0.7857 MB / 447.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.3627, allocations: 0.8189 MB / 448.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3628, allocations: 0 / 448.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.3635, allocations: 453.5 kB / 448.7 MB, free: 1.059 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/0.3653, allocations: 0.5341 MB / 449.2 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005989/0.3713, allocations: 4.517 MB / 453.7 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.3724, allocations: 1.71 MB / 455.4 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009927/0.3734, allocations: 365.4 kB / 455.8 MB, free: 9.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.3737, allocations: 155.4 kB / 456 MB, free: 9.742 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3737, allocations: 0 / 456 MB, free: 9.742 MB / 366.1 MB Notification: Performance of Templates: time 0.05123/0.4249, allocations: 32.06 MB / 488 MB, free: 9.805 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 gbode -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