Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001444/0.001444, allocations: 113.4 kB / 17.99 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 217.7 kB / 18.92 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 67.7 kB / 307.1 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09814/0.1001, allocations: 50.53 MB / 357.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.1852/0.2853, allocations: 26.42 MB / 384.1 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03008/0.3155, allocations: 22.22 MB / 406.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006419/0.3219, allocations: 59.72 kB / 406.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006364/0.3284, allocations: 1.518 MB / 407.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01346/0.3418, allocations: 2.765 MB / 410.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007488/0.3494, allocations: 1.41 MB / 412.1 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02272/0.3721, allocations: 12.94 MB / 425 MB, free: 8.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001918/0.3741, allocations: 0.8552 MB / 425.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004387/0.3785, allocations: 2.08 MB / 427.9 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004106/0.3826, allocations: 2.096 MB / 430 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007127/0.3834, allocations: 136 kB / 430.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006734/0.3901, allocations: 1.557 MB / 431.7 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001401/0.3916, allocations: 0.6049 MB / 432.3 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005157/0.3967, allocations: 2.631 MB / 435 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007386/0.4041, allocations: 4.963 MB / 439.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4042, allocations: 0 / 439.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4042, allocations: 0 / 439.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002315/0.4044, allocations: 0 / 439.9 MB, free: 9.379 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.01233/0.4168, allocations: 6.709 MB / 446.6 MB, free: 2.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.4168, allocations: 8.031 kB / 446.6 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001108/0.418, allocations: 0.7371 MB / 447.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008487/0.4265, allocations: 4.637 MB / 452 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.403e-05/0.4266, allocations: 73.94 kB / 452.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002808/0.4269, allocations: 99.91 kB / 452.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.4294, allocations: 1.301 MB / 453.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.253e-05/0.4294, allocations: 0 / 453.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.4296, allocations: 36 kB / 453.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-05/0.4296, allocations: 39.97 kB / 453.6 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002772/0.4324, allocations: 1.48 MB / 455 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0118/0.4442, allocations: 5.639 MB / 460.7 MB, free: 4.316 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002043/0.4463, allocations: 0.9851 MB / 461.7 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.4482, allocations: 1.223 MB / 462.9 MB, free: 2.094 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06643/0.5146, allocations: 61.07 MB / 0.5117 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001171/0.5158, allocations: 0.5559 MB / 0.5122 GB, free: 11.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=85): time 7.133e-06/0.5158, allocations: 7.922 kB / 0.5122 GB, free: 11.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=85): time 0.003924/0.5198, allocations: 1.875 MB / 0.5141 GB, free: 10.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.114e-05/0.5199, allocations: 71.95 kB / 0.5141 GB, free: 10.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008764/0.5286, allocations: 5.59 MB / 0.5196 GB, free: 4.445 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002257/0.5289, allocations: 37.7 kB / 0.5196 GB, free: 4.402 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003106/0.532, allocations: 2.943 MB / 0.5225 GB, free: 1.445 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005231/0.5326, allocations: 291.8 kB / 0.5228 GB, free: 1.156 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006429/0.5332, allocations: 422.6 kB / 0.5232 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.5334, allocations: 301.1 kB / 0.5235 GB, free: 452 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008937/0.5343, allocations: 407.8 kB / 0.5239 GB, free: 44 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.157/0.6913, allocations: 1.079 MB / 0.5249 GB, free: 150.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002021/0.6934, allocations: 1.614 MB / 0.5265 GB, free: 149.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.299e-05/0.6934, allocations: 7.75 kB / 0.5265 GB, free: 149.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003877/0.6973, allocations: 2.208 MB / 0.5287 GB, free: 149.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.417e-05/0.6974, allocations: 17.08 kB / 0.5287 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002075/0.6976, allocations: 160.9 kB / 0.5288 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.211e-05/0.6976, allocations: 36.69 kB / 0.5289 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001191/0.6988, allocations: 364 kB / 0.5292 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.293e-05/0.6989, allocations: 49.2 kB / 0.5292 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001806/0.7007, allocations: 183.9 kB / 0.5294 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001939/0.7009, allocations: 125.9 kB / 0.5295 GB, free: 149 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.001231/0.7021, allocations: 0.7121 MB / 0.5302 GB, free: 148.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007426/0.7029, allocations: 0.7151 MB / 0.5309 GB, free: 148.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004861/0.7078, allocations: 2.153 MB / 0.533 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.7078, allocations: 7.656 kB / 0.533 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.7078, allocations: 1.922 kB / 0.5331 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.318e-06/0.7078, allocations: 6.703 kB / 0.5331 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006242/0.7141, allocations: 3.607 MB / 0.5366 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001926/0.7143, allocations: 139 kB / 0.5367 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007792/0.7151, allocations: 148.7 kB / 0.5369 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.325e-06/0.7151, allocations: 2.531 kB / 0.5369 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.7152, allocations: 61.38 kB / 0.5369 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.7152, allocations: 11.75 kB / 0.5369 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.7152, allocations: 4.219 kB / 0.5369 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00354/0.7188, allocations: 2.152 MB / 0.539 GB, free: 146 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/0.7202, allocations: 0.8141 MB / 0.5398 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005987/0.7208, allocations: 14.86 kB / 0.5398 GB, free: 145.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001149/0.722, allocations: 52.28 kB / 0.5399 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002336/0.7222, allocations: 93.64 kB / 0.54 GB, free: 145.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.7224, allocations: 69.61 kB / 0.54 GB, free: 145.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005834/0.7282, allocations: 3.608 MB / 0.5436 GB, free: 144.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.51e-07/0.7282, allocations: 0 / 0.5436 GB, free: 144.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002446/0.7307, allocations: 1.072 MB / 0.5446 GB, free: 144.1 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.001448/0.7322, allocations: 1.183 MB / 0.5458 GB, free: 143.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.7347, allocations: 1.471 MB / 0.5472 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.7347, allocations: 0 / 0.5472 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009163/0.7356, allocations: 0.7682 MB / 0.548 GB, free: 142.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004512/0.7401, allocations: 1.209 MB / 0.5491 GB, free: 142.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01133/0.7515, allocations: 9.837 MB / 0.5587 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/0.7528, allocations: 2.588 MB / 0.5613 GB, free: 132.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006107/0.7535, allocations: 295.4 kB / 0.5616 GB, free: 132 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.7535, allocations: 0 / 0.5616 GB, free: 132 MB / 446.1 MB Notification: Performance of Templates: time 0.08438/0.8379, allocations: 70.17 MB / 0.6301 GB, free: 61.94 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp1.S.v,mp2.S.v,mp3.S.v,mp4.S.v,v.p.v Variables in the result:mp1.S.v,mp2.S.v,mp3.S.v,mp4.S.v,time,v.p.v