Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001534/0.001534, allocations: 107.4 kB / 17.98 MB, free: 5.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001683/0.001683, allocations: 213.8 kB / 18.92 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247.1 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00187/0.00187, allocations: 63.16 kB / 307.1 MB, free: 0.9102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1085, allocations: 50.53 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.0095/0.118, allocations: 8.015 MB / 365.7 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1978/0.3158, allocations: 19.26 MB / 385 MB, free: 6.379 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.3171, allocations: 35.12 kB / 385 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.3195, allocations: 0.772 MB / 385.8 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006296/0.3259, allocations: 1.538 MB / 387.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005385/0.3313, allocations: 1.166 MB / 388.5 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00576/0.3371, allocations: 3.337 MB / 391.8 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000434/0.3375, allocations: 212.3 kB / 392 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.3386, allocations: 0.5591 MB / 392.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006573/0.3393, allocations: 0.5574 MB / 393.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3394, allocations: 42.62 kB / 393.2 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004865/0.3443, allocations: 1.458 MB / 394.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003556/0.3446, allocations: 175.6 kB / 394.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.3462, allocations: 0.6799 MB / 395.5 MB, free: 1.812 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00233/0.3485, allocations: 1.613 MB / 397.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3486, allocations: 0 / 397.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3486, allocations: 1.375 kB / 397.1 MB, free: 1.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.234e-05/0.3486, allocations: 0 / 397.1 MB, free: 1.133 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003143/0.3518, allocations: 2.01 MB / 399.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.3518, allocations: 8.562 kB / 399.1 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.3521, allocations: 192.1 kB / 399.3 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.3543, allocations: 1.366 MB / 400.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.3544, allocations: 26.95 kB / 400.7 MB, free: 14.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.649e-05/0.3545, allocations: 26.34 kB / 400.7 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009534/0.3554, allocations: 428.3 kB / 401.1 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.3554, allocations: 0 / 401.1 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.63e-05/0.3555, allocations: 14.42 kB / 401.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.3555, allocations: 10.84 kB / 401.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001123/0.3567, allocations: 475.8 kB / 401.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003261/0.3599, allocations: 1.626 MB / 403.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009539/0.3609, allocations: 376.6 kB / 403.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007655/0.3617, allocations: 413.1 kB / 404 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01806/0.3797, allocations: 15.52 MB / 419.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006505/0.3804, allocations: 256.2 kB / 419.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 7.364e-06/0.3805, allocations: 4 kB / 419.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002243/0.3827, allocations: 0.8446 MB / 420.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.3828, allocations: 67.33 kB / 420.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001952/0.3847, allocations: 1.448 MB / 422.1 MB, free: 8.891 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.3848, allocations: 33.7 kB / 422.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006753/0.3855, allocations: 0.7187 MB / 422.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.3856, allocations: 98.67 kB / 423 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001972/0.3858, allocations: 126 kB / 423.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.386, allocations: 329.9 kB / 423.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004474/0.3864, allocations: 161 kB / 423.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006109/0.3871, allocations: 359.4 kB / 423.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.3881, allocations: 0.5339 MB / 424.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.3882, allocations: 0 / 424.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001728/0.3899, allocations: 0.7508 MB / 425.2 MB, free: 5.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.3899, allocations: 11.98 kB / 425.2 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-05/0.39, allocations: 36.84 kB / 425.3 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.3904, allocations: 140.8 kB / 425.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.3908, allocations: 103.8 kB / 425.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007337/0.3915, allocations: 0.682 MB / 426.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008924/0.3924, allocations: 75.5 kB / 426.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-05/0.3925, allocations: 35.98 kB / 426.3 MB, free: 4.48 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0005525/0.3931, allocations: 276.9 kB / 426.6 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003777/0.3935, allocations: 185.8 kB / 426.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002167/0.3957, allocations: 0.7453 MB / 427.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/0.3957, allocations: 4 kB / 427.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3957, allocations: 3.938 kB / 427.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.3957, allocations: 3.984 kB / 427.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.3986, allocations: 1.31 MB / 428.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.498e-05/0.3986, allocations: 32 kB / 428.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.3989, allocations: 47.89 kB / 428.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002659/0.3992, allocations: 124.8 kB / 429 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.089e-05/0.3992, allocations: 20.06 kB / 429 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000672/0.3999, allocations: 0.6695 MB / 429.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.3999, allocations: 0 / 429.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001456/0.4014, allocations: 0.7162 MB / 430.4 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006318/0.402, allocations: 278.8 kB / 430.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003241/0.4024, allocations: 8 kB / 430.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000539/0.4029, allocations: 23.97 kB / 430.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001342/0.403, allocations: 47.94 kB / 430.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.264e-05/0.4031, allocations: 20 kB / 430.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001554/0.4047, allocations: 0.961 MB / 431.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4047, allocations: 4 kB / 431.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00119/0.4059, allocations: 331.7 kB / 432.1 MB, free: 14.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001112/0.407, allocations: 0.5695 MB / 432.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.4084, allocations: 0.5302 MB / 433.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4085, allocations: 0 / 433.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000736/0.4092, allocations: 303 kB / 433.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/0.4114, allocations: 324.8 kB / 433.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.4166, allocations: 2.654 MB / 436.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001035/0.4177, allocations: 1.153 MB / 437.6 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.418, allocations: 91.44 kB / 437.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of SimCode: time 1.032e-06/0.418, allocations: 0 / 437.7 MB, free: 8.797 MB / 350.1 MB Notification: Performance of Templates: time 0.04273/0.4607, allocations: 25.79 MB / 463.5 MB, free: 15.07 MB / 382.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time