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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 226.7 MB / 245.5 MB, free: 6.988 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009387/0.0009387, allocations: 106.3 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009231/0.0009231, allocations: 51.92 kB / 356.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1909, allocations: 50.45 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005349/0.1963, allocations: 8.011 MB / 415.1 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01346/0.2098, allocations: 19.67 MB / 434.7 MB, free: 60 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007581/0.2106, allocations: 35.69 kB / 434.8 MB, free: 24 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.2126, allocations: 0.7647 MB / 435.5 MB, free: 15.25 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004234/0.2168, allocations: 1.481 MB / 437 MB, free: 13.77 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003208/0.22, allocations: 1.121 MB / 438.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004363/0.2244, allocations: 3.253 MB / 441.4 MB, free: 9.379 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.2248, allocations: 213.6 kB / 441.6 MB, free: 9.148 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006036/0.2254, allocations: 0.5364 MB / 442.1 MB, free: 8.609 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004904/0.2259, allocations: 0.555 MB / 442.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.635e-05/0.226, allocations: 28 kB / 442.7 MB, free: 8.023 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00314/0.2291, allocations: 1.436 MB / 444.1 MB, free: 6.586 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001422/0.2293, allocations: 158.8 kB / 444.3 MB, free: 6.43 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005268/0.2298, allocations: 0.6676 MB / 445 MB, free: 5.758 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002425/0.2322, allocations: 2.153 MB / 447.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2323, allocations: 0 / 447.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.609e-06/0.2323, allocations: 0 / 447.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.683e-05/0.2323, allocations: 3.938 kB / 447.1 MB, free: 3.594 MB / 314.7 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.002799/0.2351, allocations: 2.012 MB / 449.1 MB, free: 1.516 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2351, allocations: 12.03 kB / 449.1 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.2353, allocations: 189.7 kB / 449.3 MB, free: 1.316 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.2372, allocations: 1.358 MB / 450.7 MB, free: 15.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.2372, allocations: 20.56 kB / 450.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.94e-05/0.2373, allocations: 27.91 kB / 450.7 MB, free: 15.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008055/0.2381, allocations: 437.2 kB / 451.2 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.2381, allocations: 3.938 kB / 451.2 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.2381, allocations: 12 kB / 451.2 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.2382, allocations: 11.98 kB / 451.2 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.2392, allocations: 474.1 kB / 451.7 MB, free: 14.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.2417, allocations: 1.619 MB / 453.3 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008751/0.2426, allocations: 379.8 kB / 453.6 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006789/0.2432, allocations: 405.9 kB / 454 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01447/0.2577, allocations: 15.53 MB / 469.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005947/0.2584, allocations: 264.6 kB / 469.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.124e-06/0.2584, allocations: 0 / 469.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001978/0.2604, allocations: 0.833 MB / 470.7 MB, free: 9.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/0.2604, allocations: 59.34 kB / 470.7 MB, free: 9.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001541/0.262, allocations: 1.463 MB / 472.2 MB, free: 8.07 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.01e-05/0.262, allocations: 29.7 kB / 472.2 MB, free: 8.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005278/0.2625, allocations: 0.7264 MB / 472.9 MB, free: 7.301 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/0.2626, allocations: 98.64 kB / 473 MB, free: 7.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.2628, allocations: 126 kB / 473.2 MB, free: 7.074 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.2629, allocations: 326 kB / 473.5 MB, free: 6.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004279/0.2633, allocations: 161 kB / 473.6 MB, free: 6.594 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005328/0.2639, allocations: 355.5 kB / 474 MB, free: 6.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009587/0.2649, allocations: 0.5299 MB / 474.5 MB, free: 5.531 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.2649, allocations: 4 kB / 474.5 MB, free: 5.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00132/0.2662, allocations: 0.7469 MB / 475.3 MB, free: 4.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.2662, allocations: 10.34 kB / 475.3 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.315e-05/0.2663, allocations: 40 kB / 475.3 MB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002857/0.2666, allocations: 137.6 kB / 475.4 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003928/0.267, allocations: 107.8 kB / 475.5 MB, free: 4.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005283/0.2675, allocations: 0.685 MB / 476.2 MB, free: 3.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.268, allocations: 67.53 kB / 476.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-05/0.2681, allocations: 36 kB / 476.3 MB, free: 3.668 MB / 346.7 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.0003222/0.2684, allocations: 282.5 kB / 476.6 MB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.2686, allocations: 189.7 kB / 476.8 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.2705, allocations: 0.7437 MB / 477.5 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2705, allocations: 4 kB / 477.5 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2705, allocations: 0 / 477.5 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2705, allocations: 0 / 477.5 MB, free: 2.438 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.2726, allocations: 1.307 MB / 478.8 MB, free: 1.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.36e-05/0.2727, allocations: 36 kB / 478.9 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.2729, allocations: 43.89 kB / 478.9 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002251/0.2732, allocations: 128.8 kB / 479.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.2732, allocations: 23.92 kB / 479.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004773/0.2737, allocations: 0.6656 MB / 479.7 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.2737, allocations: 4.031 kB / 479.7 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002077/0.2758, allocations: 1.768 MB / 481.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003987/0.2762, allocations: 278.8 kB / 481.8 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.2764, allocations: 11.94 kB / 481.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004141/0.2768, allocations: 27.95 kB / 481.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.2769, allocations: 44.03 kB / 481.9 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.277, allocations: 23.98 kB / 481.9 MB, free: 13.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001018/0.278, allocations: 0.9649 MB / 482.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.278, allocations: 0 / 482.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008936/0.2789, allocations: 331.8 kB / 483.2 MB, free: 12.59 MB / 362.7 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.0007385/0.2796, allocations: 0.5813 MB / 483.8 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.2809, allocations: 0.5042 MB / 484.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2809, allocations: 4 kB / 484.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006277/0.2815, allocations: 300.6 kB / 484.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.2828, allocations: 296.4 kB / 484.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003263/0.2861, allocations: 2.828 MB / 487.7 MB, free: 8.004 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.2866, allocations: 1.153 MB / 488.8 MB, free: 6.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006261/0.2873, allocations: 199.9 kB / 489 MB, free: 6.621 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.2874, allocations: 91.31 kB / 489.1 MB, free: 6.531 MB / 362.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2874, allocations: 0 / 489.1 MB, free: 6.531 MB / 362.7 MB Notification: Performance of Templates: time 0.02883/0.3162, allocations: 19.34 MB / 0.4965 GB, free: 3.258 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches