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.001732/0.001732, allocations: 113.3 kB / 18.4 MB, free: 4.566 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.002163/0.002163, allocations: 189.2 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.906/2.906, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.002352/0.002352, allocations: 59.86 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.152, allocations: 46.61 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.3726/0.5246, allocations: 14.62 MB / 390.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04181/0.5665, allocations: 19.79 MB / 410.2 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006962/0.5735, allocations: 94.34 kB / 410.3 MB, free: 6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007207/0.5808, allocations: 1.241 MB / 411.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01711/0.5979, allocations: 2.333 MB / 413.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01059/0.6086, allocations: 1.387 MB / 415.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02103/0.6297, allocations: 6.463 MB / 421.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002024/0.6318, allocations: 476.8 kB / 422.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004301/0.6361, allocations: 1.042 MB / 423.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003812/0.64, allocations: 1.112 MB / 424.3 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005413/0.6405, allocations: 74.53 kB / 424.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01043/0.651, allocations: 1.165 MB / 425.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.6523, allocations: 337.5 kB / 425.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004299/0.6566, allocations: 1.436 MB / 427.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01455/0.6712, allocations: 4.008 MB / 431.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.6712, allocations: 4 kB / 431.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6713, allocations: 3.938 kB / 431.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001471/0.6714, allocations: 0 / 431.4 MB, free: 7.922 MB / 350.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.0105/0.6819, allocations: 3.845 MB / 435.2 MB, free: 4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.155e-05/0.682, allocations: 8.031 kB / 435.2 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.6831, allocations: 414.9 kB / 435.6 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006573/0.6897, allocations: 2.487 MB / 438.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.539e-05/0.6899, allocations: 36.94 kB / 438.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002457/0.6901, allocations: 63.89 kB / 438.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002212/0.6923, allocations: 0.7265 MB / 438.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.6924, allocations: 0 / 438.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.6925, allocations: 20 kB / 439 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.022e-05/0.6926, allocations: 27.98 kB / 439 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002501/0.6951, allocations: 0.8125 MB / 439.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01035/0.7054, allocations: 3.118 MB / 442.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002092/0.7076, allocations: 0.579 MB / 443.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001579/0.7092, allocations: 0.6477 MB / 444.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0511/0.7603, allocations: 30.17 MB / 474.3 MB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001156/0.7616, allocations: 377.4 kB / 474.7 MB, free: 8.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 6.392e-06/0.7616, allocations: 0 / 474.7 MB, free: 8.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003917/0.7655, allocations: 1.104 MB / 475.8 MB, free: 7.117 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.382e-05/0.7656, allocations: 63.39 kB / 475.8 MB, free: 7.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006777/0.7724, allocations: 3.111 MB / 479 MB, free: 3.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001645/0.7726, allocations: 29.7 kB / 479 MB, free: 3.898 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002353/0.775, allocations: 1.577 MB / 480.6 MB, free: 2.309 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005956/0.7756, allocations: 165.7 kB / 480.7 MB, free: 2.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006012/0.7762, allocations: 230.1 kB / 481 MB, free: 1.914 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002275/0.7765, allocations: 345.9 kB / 481.3 MB, free: 1.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000938/0.7774, allocations: 241.8 kB / 481.5 MB, free: 1.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001342/0.7788, allocations: 0.5942 MB / 482.1 MB, free: 0.5625 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002388/0.7812, allocations: 0.9013 MB / 483 MB, free: 15.49 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.37e-05/0.7812, allocations: 4.875 kB / 483 MB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004046/0.7853, allocations: 1.26 MB / 484.3 MB, free: 14.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.7853, allocations: 8 kB / 484.3 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002683/0.7856, allocations: 80 kB / 484.4 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.577e-05/0.7857, allocations: 20 kB / 484.4 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.7868, allocations: 200 kB / 484.6 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.839e-05/0.7868, allocations: 27.92 kB / 484.6 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002339/0.7892, allocations: 114.9 kB / 484.7 MB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001893/0.7894, allocations: 66.69 kB / 484.8 MB, free: 13.71 MB / 414.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.001538/0.7909, allocations: 461.4 kB / 485.2 MB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/0.792, allocations: 399.1 kB / 485.6 MB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004289/0.7963, allocations: 1.223 MB / 486.9 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.601e-05/0.7963, allocations: 4 kB / 486.9 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.7963, allocations: 0 / 486.9 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.7964, allocations: 4 kB / 486.9 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006323/0.8027, allocations: 2.155 MB / 489 MB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001475/0.8029, allocations: 68 kB / 489.1 MB, free: 9.328 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007026/0.8036, allocations: 91.86 kB / 489.2 MB, free: 9.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.8036, allocations: 4 kB / 489.2 MB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.707e-05/0.8037, allocations: 35.98 kB / 489.2 MB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.067e-05/0.8038, allocations: 4 kB / 489.2 MB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.8038, allocations: 8 kB / 489.2 MB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003957/0.8077, allocations: 1.321 MB / 490.5 MB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001756/0.8095, allocations: 496 kB / 491 MB, free: 7.328 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000698/0.8102, allocations: 15.97 kB / 491 MB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.8115, allocations: 27.91 kB / 491.1 MB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.8117, allocations: 64.02 kB / 491.1 MB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/0.8119, allocations: 43.92 kB / 491.2 MB, free: 7.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005119/0.817, allocations: 2.019 MB / 493.2 MB, free: 5.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.817, allocations: 0 / 493.2 MB, free: 5.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003036/0.8201, allocations: 0.6012 MB / 493.8 MB, free: 4.566 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.0019/0.822, allocations: 0.7736 MB / 494.6 MB, free: 3.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.8246, allocations: 0.8213 MB / 495.4 MB, free: 2.938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.8247, allocations: 0 / 495.4 MB, free: 2.938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/0.8259, allocations: 451.8 kB / 495.8 MB, free: 2.473 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003767/0.8297, allocations: 0.5317 MB / 496.4 MB, free: 1.941 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/0.8417, allocations: 4.593 MB / 0.4892 GB, free: 13.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001872/0.8436, allocations: 1.718 MB / 0.4909 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006556/0.8443, allocations: 155.4 kB / 0.491 GB, free: 11.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.723e-06/0.8443, allocations: 0 / 0.491 GB, free: 11.4 MB / 430.1 MB Notification: Performance of Templates: time 0.08896/0.9333, allocations: 38.9 MB / 0.529 GB, free: 4.441 MB / 462.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","/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