Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 201.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 229.5 MB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007774/0.0007774, allocations: 94.48 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001975/0.0001976, allocations: 8 kB / 360.6 MB, free: 8.492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1797/0.1799, allocations: 51.42 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008174/0.1881, allocations: 13.57 MB / 425.6 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02065/0.2088, allocations: 21.37 MB / 447 MB, free: 6.461 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002286/0.2111, allocations: 27.81 kB / 447 MB, free: 6.434 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00342/0.2145, allocations: 1.124 MB / 448.1 MB, free: 5.305 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006867/0.2214, allocations: 1.977 MB / 450.1 MB, free: 3.316 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004239/0.2257, allocations: 1.196 MB / 451.3 MB, free: 2.113 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009262/0.235, allocations: 6.378 MB / 457.7 MB, free: 11.71 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006631/0.2357, allocations: 442 kB / 458.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.2369, allocations: 1.045 MB / 459.2 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001039/0.238, allocations: 1.11 MB / 460.3 MB, free: 9.082 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001597/0.2381, allocations: 44 kB / 460.3 MB, free: 9.039 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003444/0.2416, allocations: 1.346 MB / 461.7 MB, free: 7.691 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002824/0.2419, allocations: 301.5 kB / 462 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001179/0.2431, allocations: 1.422 MB / 463.4 MB, free: 5.957 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003767/0.2469, allocations: 3.816 MB / 467.2 MB, free: 2.125 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2469, allocations: 4 kB / 467.2 MB, free: 2.121 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2469, allocations: 0 / 467.2 MB, free: 2.121 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.76e-05/0.2469, allocations: 0 / 467.2 MB, free: 2.121 MB / 330.7 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.004578/0.2515, allocations: 3.342 MB / 470.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2516, allocations: 12.03 kB / 470.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003651/0.2519, allocations: 407 kB / 470.9 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003163/0.2551, allocations: 2.494 MB / 473.4 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.2551, allocations: 41 kB / 473.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001274/0.2553, allocations: 55.89 kB / 473.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.2566, allocations: 0.746 MB / 474.3 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.2566, allocations: 4 kB / 474.3 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.591e-05/0.2567, allocations: 20 kB / 474.3 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.997e-05/0.2567, allocations: 19.98 kB / 474.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001568/0.2583, allocations: 0.8554 MB / 475.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004802/0.2631, allocations: 3.133 MB / 478.3 MB, free: 6.758 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.2643, allocations: 0.618 MB / 478.9 MB, free: 6.129 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009753/0.2653, allocations: 0.6634 MB / 479.6 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02771/0.293, allocations: 30.78 MB / 0.4984 GB, free: 2.438 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007537/0.2938, allocations: 389.3 kB / 0.4988 GB, free: 2.043 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.244e-06/0.2939, allocations: 4 kB / 0.4988 GB, free: 2.039 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002345/0.2962, allocations: 1.171 MB / 0.4999 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.2963, allocations: 63.19 kB / 0.5 GB, free: 0.7852 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1501/0.4464, allocations: 3.047 MB / 0.503 GB, free: 95.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4465, allocations: 33.62 kB / 0.503 GB, free: 95.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001139/0.4477, allocations: 1.572 MB / 0.5045 GB, free: 94.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.4479, allocations: 169.3 kB / 0.5047 GB, free: 94.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.024e-05/0.4479, allocations: 16.41 kB / 0.5047 GB, free: 94.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.37e-05/0.448, allocations: 336.5 kB / 0.505 GB, free: 94.17 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006102/0.4487, allocations: 264.4 kB / 0.5053 GB, free: 94.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006894/0.4494, allocations: 0.6244 MB / 0.5059 GB, free: 93.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.4506, allocations: 0.9348 MB / 0.5068 GB, free: 92.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.754e-06/0.4506, allocations: 8.781 kB / 0.5068 GB, free: 92.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00193/0.4526, allocations: 1.282 MB / 0.5081 GB, free: 92.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.4526, allocations: 11 kB / 0.5081 GB, free: 92.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.996e-05/0.4527, allocations: 79.72 kB / 0.5082 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/0.4527, allocations: 17.5 kB / 0.5082 GB, free: 92.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006986/0.4534, allocations: 218.2 kB / 0.5084 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.143e-05/0.4535, allocations: 22.69 kB / 0.5084 GB, free: 92.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009007/0.4544, allocations: 126.8 kB / 0.5085 GB, free: 92.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.082e-05/0.4545, allocations: 65.22 kB / 0.5086 GB, free: 92.37 MB / 378.7 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 ($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 (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.0005771/0.455, allocations: 457.1 kB / 0.509 GB, free: 92.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.4553, allocations: 404 kB / 0.5094 GB, free: 91.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002628/0.4579, allocations: 1.256 MB / 0.5106 GB, free: 91.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.4579, allocations: 11.25 kB / 0.5106 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4579, allocations: 0 / 0.5106 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.458, allocations: 0 / 0.5106 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002751/0.4607, allocations: 2.183 MB / 0.5128 GB, free: 90.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.912e-05/0.4608, allocations: 71.03 kB / 0.5128 GB, free: 90.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004319/0.4612, allocations: 102.8 kB / 0.5129 GB, free: 90.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.4612, allocations: 7.922 kB / 0.513 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.69e-05/0.4613, allocations: 31.69 kB / 0.513 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.4613, allocations: 3.625 kB / 0.513 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4613, allocations: 3.969 kB / 0.513 GB, free: 90.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001825/0.4631, allocations: 1.372 MB / 0.5143 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000485/0.4636, allocations: 500 kB / 0.5148 GB, free: 89.37 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002807/0.4639, allocations: 13.73 kB / 0.5148 GB, free: 89.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006864/0.4646, allocations: 40.44 kB / 0.5149 GB, free: 89.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.4648, allocations: 61.59 kB / 0.5149 GB, free: 89.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.707e-05/0.4648, allocations: 36.56 kB / 0.515 GB, free: 89.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.4667, allocations: 1.972 MB / 0.5169 GB, free: 88.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4667, allocations: 4 kB / 0.5169 GB, free: 88.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009974/0.4677, allocations: 0.594 MB / 0.5175 GB, free: 87.7 MB / 378.7 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.0008566/0.4686, allocations: 0.7728 MB / 0.5182 GB, free: 87.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.4699, allocations: 0.8528 MB / 0.519 GB, free: 86.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4699, allocations: 0 / 0.519 GB, free: 86.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.4705, allocations: 467.2 kB / 0.5195 GB, free: 85.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002372/0.4729, allocations: 0.6111 MB / 0.5201 GB, free: 85.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004496/0.4774, allocations: 5.478 MB / 0.5254 GB, free: 79.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007018/0.4781, allocations: 1.714 MB / 0.5271 GB, free: 77.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001069/0.4792, allocations: 361.3 kB / 0.5275 GB, free: 77.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.4794, allocations: 151.4 kB / 0.5276 GB, free: 77.39 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4794, allocations: 0 / 0.5276 GB, free: 77.39 MB / 378.7 MB Notification: Performance of Templates: time 0.04166/0.521, allocations: 30.87 MB / 0.5577 GB, free: 46.77 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches