Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 182.6 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.186/1.186, allocations: 225.7 MB / 243.2 MB, free: 10.26 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007372/0.0007372, allocations: 95.27 kB / 294.4 MB, free: 9.773 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002425/0.0002425, allocations: 8 kB / 354.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1755, allocations: 50.42 MB / 404.6 MB, free: 31.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01319/0.1887, allocations: 23.76 MB / 428.3 MB, free: 7.578 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02322/0.212, allocations: 22.7 MB / 451 MB, free: 468 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003554/0.2156, allocations: 63.62 kB / 451.1 MB, free: 404 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004518/0.2201, allocations: 1.541 MB / 452.6 MB, free: 14.85 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00959/0.2297, allocations: 2.702 MB / 455.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004637/0.2344, allocations: 1.363 MB / 456.7 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01648/0.2509, allocations: 12.06 MB / 468.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00123/0.2522, allocations: 0.8103 MB / 469.6 MB, free: 13.81 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002483/0.2547, allocations: 1.927 MB / 471.5 MB, free: 11.88 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001971/0.2566, allocations: 2.041 MB / 473.5 MB, free: 9.82 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002983/0.2569, allocations: 76 kB / 473.6 MB, free: 9.746 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003705/0.2607, allocations: 1.369 MB / 475 MB, free: 8.375 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005362/0.2612, allocations: 0.5424 MB / 475.5 MB, free: 7.828 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002647/0.2639, allocations: 2.582 MB / 478.1 MB, free: 5.223 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006308/0.2702, allocations: 6.347 MB / 484.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2702, allocations: 0 / 484.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2702, allocations: 0 / 484.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001204/0.2703, allocations: 0 / 484.5 MB, free: 14.85 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.007839/0.2782, allocations: 5.796 MB / 490.2 MB, free: 8.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.2782, allocations: 8.031 kB / 490.3 MB, free: 8.953 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009788/0.2792, allocations: 0.7371 MB / 491 MB, free: 8.207 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006343/0.2856, allocations: 4.636 MB / 495.6 MB, free: 3.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.344e-05/0.2857, allocations: 70 kB / 495.7 MB, free: 3.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.2859, allocations: 99.89 kB / 495.8 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/0.2879, allocations: 1.313 MB / 497.1 MB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.288, allocations: 8 kB / 497.1 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/0.2881, allocations: 36 kB / 497.2 MB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.81e-05/0.2881, allocations: 43.97 kB / 497.2 MB, free: 1.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002325/0.2905, allocations: 1.519 MB / 498.7 MB, free: 388 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008802/0.2993, allocations: 5.656 MB / 0.4925 GB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/0.3009, allocations: 1.016 MB / 0.4935 GB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.3025, allocations: 1.247 MB / 0.4948 GB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1881/0.4906, allocations: 59.85 MB / 0.5532 GB, free: 46.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008098/0.4915, allocations: 0.5753 MB / 0.5538 GB, free: 45.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.675e-06/0.4915, allocations: 0 / 0.5538 GB, free: 45.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002599/0.4941, allocations: 1.933 MB / 0.5557 GB, free: 44.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.4941, allocations: 67.97 kB / 0.5557 GB, free: 43.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004748/0.4989, allocations: 5.521 MB / 0.5611 GB, free: 38.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.402e-05/0.499, allocations: 41.7 kB / 0.5611 GB, free: 38.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001569/0.5005, allocations: 2.945 MB / 0.564 GB, free: 35.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.5007, allocations: 294.7 kB / 0.5643 GB, free: 35.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.5008, allocations: 32 kB / 0.5643 GB, free: 35.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.989e-05/0.5009, allocations: 366.7 kB / 0.5647 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006942/0.5016, allocations: 411.2 kB / 0.5651 GB, free: 34.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000869/0.5025, allocations: 1.111 MB / 0.5662 GB, free: 33.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.5041, allocations: 1.647 MB / 0.5678 GB, free: 31.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.5041, allocations: 8 kB / 0.5678 GB, free: 31.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002768/0.5069, allocations: 2.242 MB / 0.57 GB, free: 28.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.5069, allocations: 16 kB / 0.57 GB, free: 28.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001442/0.5071, allocations: 160.9 kB / 0.5701 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.09e-05/0.5071, allocations: 39.09 kB / 0.5702 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009938/0.5081, allocations: 370.7 kB / 0.5705 GB, free: 28.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.845e-05/0.5082, allocations: 51.8 kB / 0.5706 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.5098, allocations: 194.2 kB / 0.5708 GB, free: 28.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.5099, allocations: 128 kB / 0.5709 GB, free: 27.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001181/0.5111, allocations: 0.7128 MB / 0.5716 GB, free: 27.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004659/0.5116, allocations: 0.7179 MB / 0.5723 GB, free: 26.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003939/0.5155, allocations: 2.196 MB / 0.5744 GB, free: 24.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.877e-06/0.5156, allocations: 7.984 kB / 0.5744 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5156, allocations: 4 kB / 0.5744 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.5156, allocations: 3.984 kB / 0.5744 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.5195, allocations: 3.651 MB / 0.578 GB, free: 20.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001253/0.5197, allocations: 140 kB / 0.5781 GB, free: 20.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006474/0.5203, allocations: 159.9 kB / 0.5783 GB, free: 20.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.5203, allocations: 4 kB / 0.5783 GB, free: 20.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.508e-05/0.5204, allocations: 60 kB / 0.5784 GB, free: 20.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.5204, allocations: 4.875 kB / 0.5784 GB, free: 20.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5204, allocations: 4 kB / 0.5784 GB, free: 20.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.5229, allocations: 2.21 MB / 0.5805 GB, free: 17.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008961/0.5238, allocations: 0.8162 MB / 0.5813 GB, free: 17.15 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004751/0.5242, allocations: 16 kB / 0.5813 GB, free: 17.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.5253, allocations: 51.95 kB / 0.5814 GB, free: 17.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.5255, allocations: 96.48 kB / 0.5815 GB, free: 16.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5256, allocations: 65.62 kB / 0.5815 GB, free: 16.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00341/0.529, allocations: 3.542 MB / 0.585 GB, free: 13.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.529, allocations: 0 / 0.585 GB, free: 13.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001635/0.5307, allocations: 1.07 MB / 0.586 GB, free: 12.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001272/0.5319, allocations: 1.183 MB / 0.5872 GB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.5338, allocations: 1.471 MB / 0.5886 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5338, allocations: 0 / 0.5886 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008337/0.5347, allocations: 0.7903 MB / 0.5894 GB, free: 9.109 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003975/0.5387, allocations: 1.12 MB / 0.5905 GB, free: 7.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008577/0.5473, allocations: 9.858 MB / 0.6001 GB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001693/0.549, allocations: 2.592 MB / 0.6027 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002311/0.5513, allocations: 0.6924 MB / 0.6033 GB, free: 10.78 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003485/0.5516, allocations: 279.4 kB / 0.6036 GB, free: 10.5 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5517, allocations: 0 / 0.6036 GB, free: 10.5 MB / 394.7 MB Notification: Performance of Templates: time 0.08726/0.6389, allocations: 53.45 MB / 0.6558 GB, free: 5.332 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches