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.InvertersExtendedModel.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.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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008587/0.0008587, allocations: 182.2 kB / 16.71 MB, free: 4.961 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.177/1.177, allocations: 225.7 MB / 243.2 MB, free: 10.25 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.0007339/0.0007339, allocations: 86.52 kB / 294.4 MB, free: 9.758 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.0002161, allocations: 7.938 kB / 354.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1708/0.171, allocations: 50.41 MB / 404.6 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.007676/0.1787, allocations: 13.57 MB / 418.1 MB, free: 17.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.1956, allocations: 21.1 MB / 439.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001543/0.1971, allocations: 31.81 kB / 439.3 MB, free: 12.24 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002719/0.1999, allocations: 1.128 MB / 440.4 MB, free: 11.11 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005579/0.2055, allocations: 1.969 MB / 442.4 MB, free: 9.125 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003397/0.2089, allocations: 1.199 MB / 443.6 MB, free: 7.922 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.008197/0.2171, allocations: 6.303 MB / 449.9 MB, free: 1.598 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005894/0.2177, allocations: 446 kB / 450.3 MB, free: 1.129 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.2188, allocations: 1.045 MB / 451.3 MB, free: 80 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009941/0.2198, allocations: 1.11 MB / 452.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001489/0.22, allocations: 40 kB / 452.5 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003022/0.223, allocations: 1.342 MB / 453.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002737/0.2233, allocations: 297.5 kB / 454.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.2244, allocations: 1.422 MB / 455.5 MB, free: 11.85 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003425/0.2278, allocations: 3.812 MB / 459.4 MB, free: 8.016 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2278, allocations: 0 / 459.4 MB, free: 8.016 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2278, allocations: 0 / 459.4 MB, free: 8.016 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.369e-05/0.2279, allocations: 0 / 459.4 MB, free: 8.016 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.00408/0.232, allocations: 3.35 MB / 462.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.132e-05/0.232, allocations: 12.03 kB / 462.7 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000389/0.2324, allocations: 415 kB / 463.1 MB, free: 4.168 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002932/0.2353, allocations: 2.487 MB / 465.6 MB, free: 1.609 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.347e-05/0.2354, allocations: 37 kB / 465.6 MB, free: 1.574 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.2355, allocations: 59.89 kB / 465.7 MB, free: 1.516 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.2367, allocations: 0.746 MB / 466.5 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2367, allocations: 0 / 466.5 MB, free: 0.7656 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.638e-05/0.2368, allocations: 20 kB / 466.5 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.2368, allocations: 23.98 kB / 466.5 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001502/0.2384, allocations: 0.8554 MB / 467.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004334/0.2427, allocations: 3.122 MB / 470.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.2438, allocations: 0.622 MB / 471.1 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009136/0.2447, allocations: 0.6712 MB / 471.8 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02586/0.2706, allocations: 30.17 MB / 0.4902 GB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007179/0.2714, allocations: 393.4 kB / 0.4906 GB, free: 8.684 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.034e-06/0.2714, allocations: 0 / 0.4906 GB, free: 8.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002004/0.2734, allocations: 1.167 MB / 0.4917 GB, free: 7.504 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.637e-05/0.2734, allocations: 63.34 kB / 0.4918 GB, free: 7.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/0.2767, allocations: 3.051 MB / 0.4947 GB, free: 4.379 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.2767, allocations: 37.7 kB / 0.4948 GB, free: 4.336 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00121/0.278, allocations: 1.565 MB / 0.4963 GB, free: 2.762 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.2781, allocations: 173.6 kB / 0.4965 GB, free: 2.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.871e-05/0.2782, allocations: 12 kB / 0.4965 GB, free: 2.578 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.2783, allocations: 341.9 kB / 0.4968 GB, free: 2.238 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005579/0.2788, allocations: 265.8 kB / 0.4971 GB, free: 1.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007581/0.2796, allocations: 0.6138 MB / 0.4977 GB, free: 1.191 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.2809, allocations: 0.9404 MB / 0.4986 GB, free: 84 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.281, allocations: 7.938 kB / 0.4986 GB, free: 76 kB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.1373/0.4183, allocations: 1.277 MB / 0.4998 GB, free: 99.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.4184, allocations: 12.33 kB / 0.4998 GB, free: 99.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.943e-05/0.4184, allocations: 78.73 kB / 0.4999 GB, free: 99.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.4185, allocations: 19.56 kB / 0.4999 GB, free: 99.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000663/0.4191, allocations: 215.2 kB / 0.5001 GB, free: 99.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.3e-05/0.4192, allocations: 28.64 kB / 0.5002 GB, free: 99.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008643/0.42, allocations: 123.9 kB / 0.5003 GB, free: 99.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.163e-05/0.4201, allocations: 64.5 kB / 0.5003 GB, free: 99.51 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.0006092/0.4207, allocations: 449.4 kB / 0.5008 GB, free: 99.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/0.421, allocations: 398.6 kB / 0.5012 GB, free: 99.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002425/0.4234, allocations: 1.259 MB / 0.5024 GB, free: 98.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.4234, allocations: 4.688 kB / 0.5024 GB, free: 98.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.4234, allocations: 0 / 0.5024 GB, free: 98.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4234, allocations: 2.016 kB / 0.5024 GB, free: 98.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/0.4261, allocations: 2.18 MB / 0.5045 GB, free: 97.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.35e-05/0.4262, allocations: 70.25 kB / 0.5046 GB, free: 97.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004488/0.4267, allocations: 106.3 kB / 0.5047 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.4267, allocations: 3.906 kB / 0.5047 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.672e-05/0.4267, allocations: 29.53 kB / 0.5047 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.4267, allocations: 3.938 kB / 0.5047 GB, free: 97.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4267, allocations: 4.625 kB / 0.5047 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.4286, allocations: 1.38 MB / 0.5061 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004794/0.4291, allocations: 492 kB / 0.5065 GB, free: 97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002633/0.4294, allocations: 11.94 kB / 0.5066 GB, free: 96.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006434/0.43, allocations: 43.2 kB / 0.5066 GB, free: 96.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.4302, allocations: 64.42 kB / 0.5067 GB, free: 96.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.352e-05/0.4302, allocations: 37.53 kB / 0.5067 GB, free: 96.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002103/0.4323, allocations: 1.967 MB / 0.5086 GB, free: 96.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4323, allocations: 0 / 0.5086 GB, free: 96.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001/0.4334, allocations: 0.5997 MB / 0.5092 GB, free: 96.21 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.0008608/0.4342, allocations: 0.778 MB / 0.51 GB, free: 96.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001242/0.4355, allocations: 0.854 MB / 0.5108 GB, free: 95.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.4355, allocations: 0 / 0.5108 GB, free: 95.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005882/0.4361, allocations: 470.4 kB / 0.5112 GB, free: 95.26 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.4383, allocations: 0.6046 MB / 0.5118 GB, free: 94.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004242/0.4426, allocations: 5.476 MB / 0.5172 GB, free: 89.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/0.4432, allocations: 1.714 MB / 0.5189 GB, free: 87.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00103/0.4443, allocations: 357.3 kB / 0.5192 GB, free: 87.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.4444, allocations: 155.4 kB / 0.5193 GB, free: 86.91 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4445, allocations: 0 / 0.5193 GB, free: 86.91 MB / 378.7 MB Notification: Performance of Templates: time 0.04057/0.485, allocations: 30.82 MB / 0.5494 GB, free: 56.32 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches