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.001226/0.001226, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 55.31 kB / 307 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.102, allocations: 50.55 MB / 357.5 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008897/0.1109, allocations: 8.029 MB / 365.6 MB, free: 5.957 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.174/0.285, allocations: 19.46 MB / 385 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008297/0.2859, allocations: 34.12 kB / 385.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002346/0.2882, allocations: 0.8521 MB / 385.9 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005536/0.2938, allocations: 1.802 MB / 387.7 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006433/0.3002, allocations: 1.337 MB / 389 MB, free: 4.137 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007055/0.3073, allocations: 3.281 MB / 392.3 MB, free: 2.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005442/0.3079, allocations: 217.3 kB / 392.5 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.3091, allocations: 0.5399 MB / 393.1 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006252/0.3097, allocations: 0.5701 MB / 393.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.3098, allocations: 43.81 kB / 393.7 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00418/0.314, allocations: 1.441 MB / 395.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.3142, allocations: 171.9 kB / 395.3 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006329/0.3148, allocations: 0.6778 MB / 396 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003521/0.3184, allocations: 2.205 MB / 398.2 MB, free: 76 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3184, allocations: 0 / 398.2 MB, free: 76 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3184, allocations: 0 / 398.2 MB, free: 76 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.06e-05/0.3184, allocations: 4 kB / 398.2 MB, free: 72 kB / 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.004885/0.3233, allocations: 2.003 MB / 400.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.3234, allocations: 12.28 kB / 400.2 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004242/0.3238, allocations: 201.1 kB / 400.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.3268, allocations: 1.358 MB / 401.8 MB, free: 13.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.3269, allocations: 19.03 kB / 401.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.327, allocations: 29.72 kB / 401.8 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.3282, allocations: 439.8 kB / 402.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.3283, allocations: 1.594 kB / 402.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.6e-05/0.3283, allocations: 9.5 kB / 402.2 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.3284, allocations: 7 kB / 402.3 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00162/0.33, allocations: 484.5 kB / 402.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004229/0.3342, allocations: 1.624 MB / 404.3 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.3356, allocations: 366.3 kB / 404.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.3367, allocations: 416.3 kB / 405.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02089/0.3576, allocations: 15.52 MB / 420.6 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006688/0.3583, allocations: 264.1 kB / 420.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.975e-06/0.3583, allocations: 0 / 420.9 MB, free: 9.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.002421/0.3607, allocations: 0.8408 MB / 421.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.3608, allocations: 59.39 kB / 421.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/0.363, allocations: 1.455 MB / 423.2 MB, free: 7.387 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/0.363, allocations: 33.7 kB / 423.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007148/0.3638, allocations: 0.7148 MB / 424 MB, free: 6.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001043/0.3639, allocations: 94.7 kB / 424.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.3641, allocations: 130 kB / 424.2 MB, free: 6.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002171/0.3643, allocations: 325.9 kB / 424.5 MB, free: 6.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/0.3648, allocations: 169 kB / 424.7 MB, free: 5.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006286/0.3654, allocations: 355.4 kB / 425 MB, free: 5.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.3666, allocations: 0.5333 MB / 425.6 MB, free: 4.848 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.3667, allocations: 0 / 425.6 MB, free: 4.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001722/0.3684, allocations: 0.7513 MB / 426.3 MB, free: 4.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.3684, allocations: 11.98 kB / 426.3 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001008/0.3685, allocations: 44 kB / 426.4 MB, free: 4.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003424/0.3689, allocations: 128.8 kB / 426.5 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004383/0.3693, allocations: 111.2 kB / 426.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007175/0.3701, allocations: 0.6734 MB / 427.3 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008041/0.3709, allocations: 75.34 kB / 427.4 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-05/0.371, allocations: 39.98 kB / 427.4 MB, free: 2.984 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.0004254/0.3714, allocations: 277 kB / 427.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003058/0.3717, allocations: 185.8 kB / 427.9 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002096/0.3738, allocations: 0.7478 MB / 428.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3738, allocations: 4 kB / 428.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3738, allocations: 0 / 428.6 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3738, allocations: 3.984 kB / 428.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.3764, allocations: 1.303 MB / 429.9 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.157e-05/0.3765, allocations: 36 kB / 429.9 MB, free: 356 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.3767, allocations: 48.02 kB / 430 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002673/0.377, allocations: 124.8 kB / 430.1 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/0.3771, allocations: 20 kB / 430.1 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000678/0.3777, allocations: 0.6694 MB / 430.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3778, allocations: 0 / 430.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001508/0.3793, allocations: 0.7137 MB / 431.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005344/0.3798, allocations: 282.7 kB / 431.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/0.3801, allocations: 11.98 kB / 431.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.3806, allocations: 23.97 kB / 431.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.3807, allocations: 47.89 kB / 431.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.137e-05/0.3808, allocations: 20 kB / 431.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.3821, allocations: 0.9688 MB / 432.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3821, allocations: 0 / 432.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001017/0.3831, allocations: 331.8 kB / 433.2 MB, free: 13.01 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.0009968/0.3842, allocations: 0.5697 MB / 433.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.3856, allocations: 0.5199 MB / 434.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.3856, allocations: 1 kB / 434.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007201/0.3863, allocations: 303.3 kB / 434.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/0.388, allocations: 311.2 kB / 434.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004208/0.3922, allocations: 2.237 MB / 437.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009111/0.3931, allocations: 1.153 MB / 438.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007581/0.3939, allocations: 199.9 kB / 438.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.3941, allocations: 95.42 kB / 438.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3941, allocations: 0 / 438.6 MB, free: 7.531 MB / 350.1 MB Notification: Performance of Templates: time 0.03959/0.4337, allocations: 19.76 MB / 458.3 MB, free: 3.875 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches