Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 110.6 kB / 16.92 MB, free: 6.332 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.001587/0.001587, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009584/0.0009585, allocations: 52.27 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08171/0.08268, allocations: 49.43 MB / 350 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1624/0.2451, allocations: 26.7 MB / 376.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02198/0.2671, allocations: 22.34 MB / 399.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003499/0.2707, allocations: 55.84 kB / 399.1 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00419/0.2749, allocations: 1.774 MB / 400.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.2858, allocations: 3.218 MB / 404.1 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006031/0.2919, allocations: 1.619 MB / 405.8 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01963/0.3115, allocations: 12.63 MB / 418.4 MB, free: 364 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001732/0.3133, allocations: 0.8573 MB / 419.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.3166, allocations: 2.029 MB / 421.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.3199, allocations: 2.092 MB / 423.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006369/0.3206, allocations: 140 kB / 423.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005296/0.3259, allocations: 1.541 MB / 425 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007305/0.3266, allocations: 0.6088 MB / 425.7 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003/0.3297, allocations: 2.631 MB / 428.3 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007234/0.3369, allocations: 6.575 MB / 434.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3369, allocations: 0 / 434.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3369, allocations: 0 / 434.9 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.319e-05/0.337, allocations: 0 / 434.9 MB, free: 15.77 MB / 350.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.008626/0.3457, allocations: 6.69 MB / 441.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.3457, allocations: 12.03 kB / 441.6 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007898/0.3465, allocations: 0.7485 MB / 442.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006506/0.353, allocations: 4.621 MB / 446.9 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/0.3531, allocations: 66 kB / 447 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.3533, allocations: 103.8 kB / 447.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/0.3555, allocations: 1.305 MB / 448.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.3555, allocations: 3.938 kB / 448.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.3557, allocations: 39.97 kB / 448.4 MB, free: 1.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.145e-05/0.3557, allocations: 35.98 kB / 448.5 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002536/0.3583, allocations: 1.484 MB / 450 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009757/0.368, allocations: 5.636 MB / 455.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.3698, allocations: 0.9818 MB / 456.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001641/0.3715, allocations: 1.219 MB / 457.8 MB, free: 8.512 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05384/0.4253, allocations: 59.81 MB / 0.5055 GB, free: 4.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009816/0.4264, allocations: 0.556 MB / 0.506 GB, free: 3.949 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.645e-06/0.4264, allocations: 0 / 0.506 GB, free: 3.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003382/0.4298, allocations: 1.871 MB / 0.5079 GB, free: 2.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.4298, allocations: 63.97 kB / 0.5079 GB, free: 1.992 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006861/0.4367, allocations: 5.594 MB / 0.5134 GB, free: 12.43 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00014/0.4369, allocations: 37.7 kB / 0.5134 GB, free: 12.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002514/0.4394, allocations: 2.947 MB / 0.5163 GB, free: 9.422 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.4398, allocations: 299.9 kB / 0.5166 GB, free: 9.125 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005804/0.4403, allocations: 422.5 kB / 0.517 GB, free: 8.707 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4405, allocations: 301.1 kB / 0.5173 GB, free: 8.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008914/0.4414, allocations: 407.8 kB / 0.5177 GB, free: 8.012 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.4427, allocations: 1.087 MB / 0.5187 GB, free: 6.598 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002259/0.4449, allocations: 1.611 MB / 0.5203 GB, free: 4.652 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.445, allocations: 4 kB / 0.5203 GB, free: 4.648 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003659/0.4486, allocations: 2.206 MB / 0.5224 GB, free: 2.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.786e-05/0.4487, allocations: 16.94 kB / 0.5225 GB, free: 2.414 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002037/0.4489, allocations: 160 kB / 0.5226 GB, free: 2.258 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.059e-05/0.4489, allocations: 35.94 kB / 0.5226 GB, free: 2.223 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/0.4501, allocations: 359.4 kB / 0.523 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.677e-05/0.4501, allocations: 57.34 kB / 0.523 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.4517, allocations: 182.2 kB / 0.5232 GB, free: 1.637 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001658/0.4519, allocations: 125.1 kB / 0.5233 GB, free: 1.516 MB / 446.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.001233/0.4531, allocations: 0.7082 MB / 0.524 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006531/0.4538, allocations: 0.7217 MB / 0.5247 GB, free: 68 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1531/0.6069, allocations: 2.148 MB / 0.5268 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.6069, allocations: 12.61 kB / 0.5268 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.6069, allocations: 0 / 0.5268 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.607, allocations: 3 kB / 0.5268 GB, free: 155.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00569/0.6127, allocations: 3.603 MB / 0.5304 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001811/0.6129, allocations: 139.3 kB / 0.5305 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007434/0.6136, allocations: 151.7 kB / 0.5306 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.6136, allocations: 3.688 kB / 0.5306 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.897e-05/0.6137, allocations: 63.08 kB / 0.5307 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.6138, allocations: 2.844 kB / 0.5307 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.6138, allocations: 1.219 kB / 0.5307 GB, free: 153.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003186/0.617, allocations: 2.151 MB / 0.5328 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.6182, allocations: 0.8177 MB / 0.5336 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005309/0.6188, allocations: 18 kB / 0.5336 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.6198, allocations: 40.72 kB / 0.5337 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.6201, allocations: 100.7 kB / 0.5338 GB, free: 152.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/0.6202, allocations: 73.92 kB / 0.5338 GB, free: 152.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005136/0.6253, allocations: 3.605 MB / 0.5374 GB, free: 151.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6254, allocations: 0 / 0.5374 GB, free: 151.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002337/0.6277, allocations: 1.079 MB / 0.5384 GB, free: 151.5 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.001324/0.629, allocations: 1.184 MB / 0.5396 GB, free: 151.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002525/0.6316, allocations: 1.464 MB / 0.541 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.6316, allocations: 0 / 0.541 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000991/0.6326, allocations: 0.7676 MB / 0.5417 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004539/0.6371, allocations: 1.203 MB / 0.5429 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009053/0.6462, allocations: 8.225 MB / 0.551 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001454/0.6477, allocations: 2.594 MB / 0.5535 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002139/0.6498, allocations: 0.6843 MB / 0.5542 GB, free: 144.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002959/0.6501, allocations: 291.3 kB / 0.5544 GB, free: 144.1 MB / 446.1 MB Notification: Performance of SimCode: time 6.32e-07/0.6501, allocations: 0 / 0.5544 GB, free: 144.1 MB / 446.1 MB Notification: Performance of Templates: time 0.07539/0.7255, allocations: 55.27 MB / 0.6084 GB, free: 89.22 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches