Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.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.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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009284/0.0009286, allocations: 199.7 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00078/0.0007802, allocations: 98.73 kB / 299.9 MB, free: 5.367 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000209/0.000209, allocations: 11.98 kB / 360.6 MB, free: 8.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1863, allocations: 51.42 MB / 412 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01374/0.2001, allocations: 23.77 MB / 435.8 MB, free: 2.094 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02463/0.2248, allocations: 22.96 MB / 458.8 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0032/0.228, allocations: 63.56 kB / 458.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004046/0.2321, allocations: 1.529 MB / 460.4 MB, free: 9.055 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009155/0.2412, allocations: 2.71 MB / 463.1 MB, free: 6.328 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004352/0.2456, allocations: 1.363 MB / 464.4 MB, free: 4.961 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01742/0.263, allocations: 12.22 MB / 476.7 MB, free: 8.699 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.2644, allocations: 0.8064 MB / 477.5 MB, free: 7.859 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.2675, allocations: 1.931 MB / 479.4 MB, free: 5.918 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.2701, allocations: 2.033 MB / 481.4 MB, free: 3.871 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002992/0.2704, allocations: 76 kB / 481.5 MB, free: 3.797 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003967/0.2743, allocations: 1.381 MB / 482.9 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005132/0.2749, allocations: 0.5385 MB / 483.4 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002331/0.2772, allocations: 2.59 MB / 486 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00599/0.2832, allocations: 6.344 MB / 492.4 MB, free: 8.887 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2832, allocations: 3.984 kB / 492.4 MB, free: 8.883 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2832, allocations: 0 / 492.4 MB, free: 8.883 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.935e-05/0.2833, allocations: 4 kB / 492.4 MB, free: 8.879 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.007693/0.291, allocations: 5.788 MB / 498.2 MB, free: 3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2911, allocations: 8.031 kB / 498.2 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006392/0.2917, allocations: 0.741 MB / 498.9 MB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006053/0.2978, allocations: 4.629 MB / 0.4917 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.498e-05/0.2979, allocations: 70 kB / 0.4918 GB, free: 13.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002098/0.2981, allocations: 103.8 kB / 0.4919 GB, free: 13.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002093/0.3002, allocations: 1.32 MB / 0.4932 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.3002, allocations: 0 / 0.4932 GB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.3003, allocations: 36 kB / 0.4932 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.63e-05/0.3004, allocations: 31.98 kB / 0.4933 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002342/0.3027, allocations: 1.523 MB / 0.4947 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008441/0.3112, allocations: 5.659 MB / 0.5003 GB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001571/0.3128, allocations: 1.032 MB / 0.5013 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.3143, allocations: 1.243 MB / 0.5025 GB, free: 2.379 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1929/0.5072, allocations: 61.11 MB / 0.5622 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008638/0.5081, allocations: 0.5769 MB / 0.5627 GB, free: 33.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.856e-06/0.5081, allocations: 3.281 kB / 0.5627 GB, free: 33.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.00269/0.5108, allocations: 1.934 MB / 0.5646 GB, free: 31.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.5109, allocations: 65.28 kB / 0.5647 GB, free: 31.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005229/0.5161, allocations: 5.52 MB / 0.5701 GB, free: 26.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.5162, allocations: 41.7 kB / 0.5701 GB, free: 26.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001654/0.5179, allocations: 2.942 MB / 0.573 GB, free: 23.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002209/0.5181, allocations: 294.9 kB / 0.5733 GB, free: 23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.868e-05/0.5182, allocations: 28 kB / 0.5733 GB, free: 22.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.5183, allocations: 367.2 kB / 0.5736 GB, free: 22.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007249/0.519, allocations: 426.9 kB / 0.574 GB, free: 22.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008988/0.5199, allocations: 1.1 MB / 0.5751 GB, free: 20.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001719/0.5216, allocations: 1.651 MB / 0.5767 GB, free: 18.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.5217, allocations: 8 kB / 0.5767 GB, free: 18.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002893/0.5246, allocations: 2.244 MB / 0.5789 GB, free: 16.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.5246, allocations: 16 kB / 0.5789 GB, free: 16.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000158/0.5248, allocations: 164 kB / 0.5791 GB, free: 16.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.137e-05/0.5248, allocations: 32 kB / 0.5791 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.5258, allocations: 371.4 kB / 0.5795 GB, free: 16.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.599e-05/0.5259, allocations: 43.86 kB / 0.5795 GB, free: 16.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001671/0.5276, allocations: 194.2 kB / 0.5797 GB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.5277, allocations: 127.9 kB / 0.5798 GB, free: 15.71 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.001138/0.5289, allocations: 0.7121 MB / 0.5805 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005193/0.5294, allocations: 0.7247 MB / 0.5812 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004218/0.5336, allocations: 2.192 MB / 0.5834 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.5336, allocations: 11.98 kB / 0.5834 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5336, allocations: 0 / 0.5834 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.5337, allocations: 0 / 0.5834 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004385/0.538, allocations: 3.644 MB / 0.587 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001328/0.5382, allocations: 144 kB / 0.5871 GB, free: 8.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/0.5389, allocations: 163.8 kB / 0.5872 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.5389, allocations: 0 / 0.5872 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.832e-05/0.539, allocations: 67.94 kB / 0.5873 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.539, allocations: 4 kB / 0.5873 GB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.539, allocations: 0 / 0.5873 GB, free: 8.004 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002654/0.5417, allocations: 2.215 MB / 0.5895 GB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.5427, allocations: 0.8124 MB / 0.5903 GB, free: 4.922 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005016/0.5432, allocations: 12 kB / 0.5903 GB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.5443, allocations: 51.95 kB / 0.5903 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.5446, allocations: 96.48 kB / 0.5904 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.5447, allocations: 68 kB / 0.5905 GB, free: 4.695 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003638/0.5483, allocations: 3.542 MB / 0.5939 GB, free: 1.184 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5483, allocations: 0 / 0.5939 GB, free: 1.184 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001899/0.5502, allocations: 1.072 MB / 0.595 GB, free: 156 kB / 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.001537/0.5518, allocations: 1.193 MB / 0.5962 GB, free: 15.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.5542, allocations: 1.459 MB / 0.5976 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.5542, allocations: 0 / 0.5976 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00107/0.5553, allocations: 0.7917 MB / 0.5984 GB, free: 12.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004842/0.5601, allocations: 1.125 MB / 0.5995 GB, free: 11.75 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01149/0.5716, allocations: 9.852 MB / 0.6091 GB, free: 1.852 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001697/0.5734, allocations: 2.588 MB / 0.6116 GB, free: 15.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00253/0.5759, allocations: 0.6924 MB / 0.6123 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004015/0.5763, allocations: 279.4 kB / 0.6125 GB, free: 14.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.342e-06/0.5763, allocations: 0 / 0.6125 GB, free: 14.27 MB / 410.7 MB Notification: Performance of Templates: time 0.08881/0.6651, allocations: 53.48 MB / 0.6648 GB, free: 9.203 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches