Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.00107/0.001075, allocations: 91.08 kB / 16.65 MB, free: 6.602 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.001395/0.001395, allocations: 173.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002821/0.0002823, allocations: 13.88 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09659, allocations: 50.42 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01371/0.1103, allocations: 14.6 MB / 366.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1929/0.3032, allocations: 20.64 MB / 387.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.305, allocations: 34.44 kB / 387.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00334/0.3084, allocations: 1.13 MB / 388.2 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008481/0.3169, allocations: 1.97 MB / 390.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005579/0.3225, allocations: 1.194 MB / 391.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009392/0.3319, allocations: 6.485 MB / 397.9 MB, free: 4.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007095/0.3326, allocations: 441.4 kB / 398.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/0.3342, allocations: 1.066 MB / 399.4 MB, free: 3.445 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001083/0.3353, allocations: 1.11 MB / 400.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.3354, allocations: 44.47 kB / 400.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004083/0.3395, allocations: 1.457 MB / 402 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002715/0.3398, allocations: 308 kB / 402.3 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001236/0.3411, allocations: 1.421 MB / 403.7 MB, free: 1.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004243/0.3453, allocations: 3.82 MB / 407.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.3453, allocations: 0 / 407.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3453, allocations: 0 / 407.5 MB, free: 13.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.606e-05/0.3454, allocations: 0 / 407.5 MB, free: 13.71 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.004577/0.35, allocations: 3.335 MB / 410.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.35, allocations: 8.031 kB / 410.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003995/0.3504, allocations: 410.9 kB / 411.3 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003224/0.3537, allocations: 2.495 MB / 413.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.393e-05/0.3537, allocations: 33 kB / 413.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.3539, allocations: 55.94 kB / 413.9 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.3553, allocations: 0.7538 MB / 414.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3553, allocations: 0 / 414.6 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.019e-05/0.3554, allocations: 20 kB / 414.6 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.3554, allocations: 19.98 kB / 414.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.3571, allocations: 0.8593 MB / 415.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.3621, allocations: 3.129 MB / 418.6 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3634, allocations: 0.6181 MB / 419.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3644, allocations: 0.6768 MB / 419.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02789/0.3923, allocations: 30.16 MB / 450.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007916/0.3931, allocations: 397.3 kB / 450.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.945e-06/0.3931, allocations: 0 / 450.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.00308/0.3962, allocations: 1.171 MB / 451.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.3963, allocations: 59.41 kB / 451.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006761/0.4031, allocations: 3.083 MB / 454.8 MB, free: 10.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.4032, allocations: 37.7 kB / 454.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002162/0.4054, allocations: 1.573 MB / 456.4 MB, free: 8.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002583/0.4057, allocations: 173.6 kB / 456.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.4058, allocations: 73.67 kB / 456.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.406, allocations: 341.9 kB / 457 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.4071, allocations: 265.9 kB / 457.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.4084, allocations: 0.6254 MB / 457.9 MB, free: 6.793 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.4109, allocations: 0.9365 MB / 458.8 MB, free: 5.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.4109, allocations: 4 kB / 458.8 MB, free: 5.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003891/0.4149, allocations: 1.296 MB / 460.1 MB, free: 4.379 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.4149, allocations: 12 kB / 460.1 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000173/0.4151, allocations: 83.98 kB / 460.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.109e-05/0.4151, allocations: 22.97 kB / 460.2 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.4164, allocations: 203.7 kB / 460.4 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.016e-05/0.4165, allocations: 27.88 kB / 460.4 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001976/0.4185, allocations: 123.1 kB / 460.6 MB, free: 3.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/0.4186, allocations: 64 kB / 460.6 MB, free: 3.855 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 (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.001254/0.4199, allocations: 449.5 kB / 461.1 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006953/0.4206, allocations: 399.1 kB / 461.5 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005158/0.4258, allocations: 1.258 MB / 462.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4258, allocations: 4 kB / 462.7 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4258, allocations: 4 kB / 462.7 MB, free: 1.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4259, allocations: 7.984 kB / 462.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005575/0.4315, allocations: 2.182 MB / 464.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001594/0.4317, allocations: 75.94 kB / 465 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008202/0.4325, allocations: 103.9 kB / 465.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.4325, allocations: 4 kB / 465.1 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.471e-05/0.4326, allocations: 35.98 kB / 465.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.4326, allocations: 0 / 465.1 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.4326, allocations: 4 kB / 465.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003999/0.4367, allocations: 1.384 MB / 466.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/0.438, allocations: 0.4883 MB / 467 MB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004867/0.4385, allocations: 11.98 kB / 467 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00131/0.4398, allocations: 35.97 kB / 467 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.44, allocations: 59.94 kB / 467.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.4402, allocations: 36 kB / 467.1 MB, free: 13.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004879/0.4451, allocations: 2.01 MB / 469.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.4451, allocations: 0 / 469.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002592/0.4477, allocations: 0.5934 MB / 469.7 MB, free: 10.59 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 (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.001752/0.4495, allocations: 0.7758 MB / 470.5 MB, free: 9.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.4522, allocations: 0.8567 MB / 471.4 MB, free: 8.926 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4522, allocations: 0 / 471.4 MB, free: 8.926 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001287/0.4535, allocations: 463.2 kB / 471.8 MB, free: 8.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005302/0.4588, allocations: 0.6044 MB / 472.4 MB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.4704, allocations: 5.486 MB / 477.9 MB, free: 2.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001884/0.4723, allocations: 1.706 MB / 479.6 MB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002507/0.4749, allocations: 361.3 kB / 480 MB, free: 228 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.4753, allocations: 151.4 kB / 480.1 MB, free: 76 kB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4753, allocations: 0 / 480.1 MB, free: 76 kB / 382.1 MB Notification: Performance of Templates: time 0.06344/0.5388, allocations: 30.81 MB / 0.499 GB, free: 1.547 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches