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.0007572/0.0007572, allocations: 91.55 kB / 17.31 MB, free: 6.512 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.0008273/0.0008273, allocations: 177.1 kB / 18.21 MB, free: 5.656 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.093/1.093, allocations: 223.3 MB / 242.3 MB, free: 14.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002315/0.0002316, allocations: 7.938 kB / 302.1 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07805/0.0783, allocations: 50.42 MB / 352.5 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01123/0.08957, allocations: 14.61 MB / 367.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1553/0.2449, allocations: 20.63 MB / 387.7 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.2461, allocations: 29.66 kB / 387.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002584/0.2487, allocations: 1.128 MB / 388.9 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006327/0.255, allocations: 1.972 MB / 390.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00378/0.2588, allocations: 1.195 MB / 392.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007397/0.2662, allocations: 6.482 MB / 398.5 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000565/0.2668, allocations: 449.7 kB / 399 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001316/0.2682, allocations: 1.061 MB / 400 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008713/0.269, allocations: 1.114 MB / 401.1 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.2692, allocations: 43.16 kB / 401.2 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003698/0.2729, allocations: 1.454 MB / 402.6 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.2731, allocations: 302.8 kB / 402.9 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007746/0.2739, allocations: 1.418 MB / 404.4 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001905/0.2758, allocations: 2.877 MB / 407.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2758, allocations: 4 kB / 407.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2758, allocations: 0 / 407.2 MB, free: 14.6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.389e-05/0.2758, allocations: 0 / 407.2 MB, free: 14.6 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.003774/0.2796, allocations: 3.335 MB / 410.6 MB, free: 11.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.2796, allocations: 8.031 kB / 410.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003311/0.28, allocations: 414.9 kB / 411 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002683/0.2827, allocations: 2.498 MB / 413.5 MB, free: 8.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.786e-05/0.2827, allocations: 37 kB / 413.5 MB, free: 8.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.2828, allocations: 55.94 kB / 413.6 MB, free: 8.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/0.284, allocations: 0.746 MB / 414.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.284, allocations: 0 / 414.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.2841, allocations: 23.98 kB / 414.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/0.2841, allocations: 20 kB / 414.4 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001398/0.2855, allocations: 0.867 MB / 415.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004003/0.2895, allocations: 3.129 MB / 418.4 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/0.2906, allocations: 0.6142 MB / 419 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009104/0.2915, allocations: 0.6688 MB / 419.6 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02412/0.3157, allocations: 30.16 MB / 449.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007247/0.3164, allocations: 400.4 kB / 450.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.895e-06/0.3165, allocations: 0 / 450.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002235/0.3187, allocations: 1.167 MB / 451.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.3188, allocations: 63.39 kB / 451.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.3225, allocations: 3.087 MB / 454.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.987e-05/0.3226, allocations: 37.7 kB / 454.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001188/0.3238, allocations: 1.569 MB / 456.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.324, allocations: 161.7 kB / 456.3 MB, free: 9.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.429e-05/0.3241, allocations: 81.61 kB / 456.4 MB, free: 9.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3242, allocations: 337.9 kB / 456.7 MB, free: 8.734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005515/0.3247, allocations: 265.9 kB / 456.9 MB, free: 8.477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007442/0.3255, allocations: 0.6255 MB / 457.6 MB, free: 7.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.3269, allocations: 0.9364 MB / 458.5 MB, free: 6.574 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.3269, allocations: 7.938 kB / 458.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00205/0.3289, allocations: 1.299 MB / 459.8 MB, free: 5.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.329, allocations: 8 kB / 459.8 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.249e-05/0.3291, allocations: 87.92 kB / 459.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.76e-05/0.3291, allocations: 20 kB / 459.9 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006588/0.3298, allocations: 212.3 kB / 460.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.038e-05/0.3298, allocations: 19.94 kB / 460.2 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.3309, allocations: 127.1 kB / 460.3 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.453e-05/0.331, allocations: 64 kB / 460.3 MB, free: 4.73 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.0006128/0.3316, allocations: 445.5 kB / 460.8 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004209/0.332, allocations: 403.1 kB / 461.2 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/0.3347, allocations: 1.254 MB / 462.4 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.3348, allocations: 4 kB / 462.4 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3348, allocations: 0 / 462.4 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.3348, allocations: 0 / 462.4 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003168/0.338, allocations: 2.186 MB / 464.6 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.888e-05/0.338, allocations: 71.98 kB / 464.7 MB, free: 296 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.3385, allocations: 103.9 kB / 464.8 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.251e-06/0.3385, allocations: 4.062 kB / 464.8 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.3386, allocations: 39.92 kB / 464.8 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.3386, allocations: 4 kB / 464.8 MB, free: 144 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3386, allocations: 3.938 kB / 464.8 MB, free: 140 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.3407, allocations: 1.388 MB / 466.2 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000673/0.3414, allocations: 492 kB / 466.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003753/0.3418, allocations: 8 kB / 466.7 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007615/0.3426, allocations: 44.02 kB / 466.8 MB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.3427, allocations: 59.95 kB / 466.8 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.082e-05/0.3428, allocations: 42.36 kB / 466.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002468/0.3453, allocations: 2.007 MB / 468.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3453, allocations: 0 / 468.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001253/0.3465, allocations: 0.5934 MB / 469.5 MB, free: 11.47 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.001049/0.3476, allocations: 0.7849 MB / 470.2 MB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.3491, allocations: 0.8489 MB / 471.1 MB, free: 9.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3491, allocations: 4 kB / 471.1 MB, free: 9.801 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007056/0.3498, allocations: 463.2 kB / 471.5 MB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00276/0.3526, allocations: 0.6005 MB / 472.1 MB, free: 8.719 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00629/0.3589, allocations: 5.55 MB / 477.7 MB, free: 3.125 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001067/0.36, allocations: 1.71 MB / 479.4 MB, free: 1.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.3602, allocations: 151.4 kB / 479.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3602, allocations: 0 / 479.6 MB, free: 1.238 MB / 382.1 MB Notification: Performance of Templates: time 0.04533/0.4056, allocations: 38.05 MB / 0.5055 GB, free: 11.35 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/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