Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.002122/0.002122, allocations: 191 kB / 19.29 MB, free: 3.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.309/1.309, allocations: 205.1 MB / 225.2 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 47.92 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07724/0.07843, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02108/0.09955, allocations: 25.35 MB / 354.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02328/0.1229, allocations: 21.33 MB / 375.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003541/0.1265, allocations: 182.4 kB / 375.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003918/0.1304, allocations: 1.718 MB / 377.3 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1503/0.2807, allocations: 3.157 MB / 380.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005129/0.2859, allocations: 1.57 MB / 382 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01805/0.304, allocations: 12.4 MB / 394.4 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001416/0.3054, allocations: 0.8599 MB / 395.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003298/0.3087, allocations: 1.875 MB / 397.2 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002384/0.3111, allocations: 2.055 MB / 399.2 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003378/0.3115, allocations: 138.8 kB / 399.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003701/0.3152, allocations: 1.214 MB / 400.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004691/0.3157, allocations: 0.6025 MB / 401.2 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002222/0.3179, allocations: 2.641 MB / 403.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005089/0.323, allocations: 6.675 MB / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.323, allocations: 0 / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.323, allocations: 0 / 410.5 MB, free: 7.262 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.248e-05/0.3231, allocations: 0 / 410.5 MB, free: 7.262 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.007526/0.3306, allocations: 6.72 MB / 417.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.3307, allocations: 12.03 kB / 417.2 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006053/0.3313, allocations: 0.7482 MB / 418 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006471/0.3378, allocations: 4.627 MB / 422.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.999e-05/0.3379, allocations: 68.88 kB / 422.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002124/0.3381, allocations: 103.8 kB / 422.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002124/0.3402, allocations: 1.301 MB / 424.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.3402, allocations: 0.75 kB / 424.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.3404, allocations: 36 kB / 424.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.283e-05/0.3404, allocations: 45.22 kB / 424.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.3429, allocations: 1.483 MB / 425.6 MB, free: 8.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009151/0.352, allocations: 5.629 MB / 431.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.3537, allocations: 0.9971 MB / 432.3 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.3553, allocations: 1.227 MB / 433.5 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05774/0.413, allocations: 59.92 MB / 493.4 MB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/0.4141, allocations: 0.5628 MB / 494 MB, free: 11.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=85): time 3.026e-06/0.4141, allocations: 0 / 494 MB, free: 11.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=85): time 0.003238/0.4174, allocations: 1.881 MB / 495.9 MB, free: 9.988 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.4174, allocations: 67.16 kB / 495.9 MB, free: 9.914 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006747/0.4242, allocations: 5.628 MB / 0.4898 GB, free: 4.316 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.4243, allocations: 37.7 kB / 0.4898 GB, free: 4.273 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002361/0.4267, allocations: 2.938 MB / 0.4927 GB, free: 1.328 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003016/0.427, allocations: 298.9 kB / 0.493 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004962/0.4275, allocations: 418.6 kB / 0.4934 GB, free: 0.625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.4276, allocations: 308.3 kB / 0.4937 GB, free: 332 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008365/0.4285, allocations: 407.8 kB / 0.4941 GB, free: 15.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.4297, allocations: 1.081 MB / 0.4951 GB, free: 14.53 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002176/0.4319, allocations: 1.613 MB / 0.4967 GB, free: 12.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.4319, allocations: 8 kB / 0.4967 GB, free: 12.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003496/0.4354, allocations: 2.217 MB / 0.4989 GB, free: 10.39 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.4355, allocations: 16.22 kB / 0.4989 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001988/0.4357, allocations: 164 kB / 0.499 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.999e-05/0.4357, allocations: 35.94 kB / 0.4991 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.4369, allocations: 359.4 kB / 0.4994 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.753e-05/0.4369, allocations: 47.84 kB / 0.4995 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.4387, allocations: 190.1 kB / 0.4996 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002109/0.4389, allocations: 125.6 kB / 0.4998 GB, free: 9.48 MB / 430.1 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 (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 (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.001298/0.4402, allocations: 0.7121 MB / 0.5005 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006944/0.4409, allocations: 0.7256 MB / 0.5012 GB, free: 8.023 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00423/0.4452, allocations: 2.168 MB / 0.5033 GB, free: 5.855 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.4452, allocations: 12 kB / 0.5033 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4452, allocations: 0 / 0.5033 GB, free: 5.844 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.4452, allocations: 3.984 kB / 0.5033 GB, free: 5.84 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005823/0.451, allocations: 3.625 MB / 0.5068 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001756/0.4512, allocations: 136 kB / 0.507 GB, free: 2.031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007796/0.452, allocations: 151.9 kB / 0.5071 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.4521, allocations: 4 kB / 0.5071 GB, free: 1.879 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.456e-05/0.4522, allocations: 67.92 kB / 0.5072 GB, free: 1.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.915e-06/0.4522, allocations: 7.938 kB / 0.5072 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4522, allocations: 0 / 0.5072 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003284/0.4555, allocations: 2.156 MB / 0.5093 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/0.4572, allocations: 0.824 MB / 0.5101 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000529/0.4577, allocations: 16 kB / 0.5101 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.459, allocations: 35.97 kB / 0.5101 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002162/0.4592, allocations: 96.42 kB / 0.5102 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.4593, allocations: 75.92 kB / 0.5103 GB, free: 14.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005188/0.4645, allocations: 3.633 MB / 0.5139 GB, free: 10.95 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4645, allocations: 0 / 0.5139 GB, free: 10.95 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00256/0.4671, allocations: 1.085 MB / 0.5149 GB, free: 9.863 MB / 446.1 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.001858/0.469, allocations: 1.196 MB / 0.5161 GB, free: 8.875 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002596/0.4716, allocations: 1.431 MB / 0.5175 GB, free: 7.402 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4716, allocations: 0 / 0.5175 GB, free: 7.402 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001107/0.4727, allocations: 0.7785 MB / 0.5182 GB, free: 6.578 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/0.4763, allocations: 0.9846 MB / 0.5192 GB, free: 5.594 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.487, allocations: 8.134 MB / 0.5272 GB, free: 13.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001909/0.4889, allocations: 2.608 MB / 0.5297 GB, free: 10.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001961/0.4909, allocations: 0.6888 MB / 0.5304 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003944/0.4913, allocations: 283.4 kB / 0.5306 GB, free: 9.828 MB / 462.1 MB Notification: Performance of SimCode: time 6.02e-07/0.4913, allocations: 0 / 0.5306 GB, free: 9.828 MB / 462.1 MB Notification: Performance of Templates: time 0.2207/0.7121, allocations: 55.4 MB / 0.5847 GB, free: 152.2 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches