Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001279/0.001279, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 51.06 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09555/0.09661, allocations: 49.45 MB / 351.5 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.007749/0.1044, allocations: 8.022 MB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1855/0.2899, allocations: 19.42 MB / 378.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009877/0.2909, allocations: 63.69 kB / 379 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.2932, allocations: 0.8572 MB / 379.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005218/0.2984, allocations: 1.797 MB / 381.6 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00525/0.3037, allocations: 1.335 MB / 383 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005221/0.3089, allocations: 3.254 MB / 386.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.3094, allocations: 227.8 kB / 386.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000858/0.3102, allocations: 0.5487 MB / 387 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005677/0.3108, allocations: 0.5615 MB / 387.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.007e-05/0.3109, allocations: 40.97 kB / 387.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003938/0.3149, allocations: 1.446 MB / 389.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.315, allocations: 162.8 kB / 389.2 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005633/0.3156, allocations: 0.6854 MB / 389.9 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003187/0.3188, allocations: 2.211 MB / 392.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3188, allocations: 0 / 392.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3188, allocations: 1.031 kB / 392.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.286e-05/0.3188, allocations: 2.438 kB / 392.1 MB, free: 6.031 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.00259/0.3214, allocations: 2.007 MB / 394.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.3215, allocations: 8.75 kB / 394.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000177/0.3217, allocations: 188.1 kB / 394.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.3232, allocations: 1.356 MB / 395.7 MB, free: 3.562 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.186e-05/0.3232, allocations: 23.55 kB / 395.7 MB, free: 3.551 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.055e-05/0.3233, allocations: 25.88 kB / 395.7 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007852/0.3241, allocations: 431.8 kB / 396.1 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3241, allocations: 3.984 kB / 396.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.079e-05/0.3241, allocations: 10.47 kB / 396.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.3242, allocations: 8.062 kB / 396.2 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009593/0.3251, allocations: 475.3 kB / 396.6 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002219/0.3274, allocations: 1.619 MB / 398.2 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00078/0.3281, allocations: 377.4 kB / 398.6 MB, free: 1.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.3287, allocations: 413.5 kB / 399 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01519/0.3439, allocations: 15.2 MB / 414.2 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006211/0.3446, allocations: 263.6 kB / 414.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.875e-06/0.3446, allocations: 0 / 414.5 MB, free: 1.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.00198/0.3466, allocations: 0.8394 MB / 415.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.3467, allocations: 59.34 kB / 415.4 MB, free: 480 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001563/0.3482, allocations: 1.455 MB / 416.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.407e-05/0.3483, allocations: 33.64 kB / 416.9 MB, free: 14.94 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005177/0.3488, allocations: 0.7177 MB / 417.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.446e-05/0.3489, allocations: 97.56 kB / 417.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.3491, allocations: 137.9 kB / 417.8 MB, free: 13.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.3492, allocations: 329.9 kB / 418.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004032/0.3496, allocations: 157 kB / 418.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004977/0.3501, allocations: 363.4 kB / 418.6 MB, free: 13.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008865/0.351, allocations: 0.5332 MB / 419.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.351, allocations: 8 kB / 419.2 MB, free: 12.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001303/0.3523, allocations: 0.7426 MB / 419.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3523, allocations: 12.12 kB / 419.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.857e-05/0.3524, allocations: 44 kB / 420 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002904/0.3527, allocations: 132.8 kB / 420.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000384/0.3531, allocations: 103.8 kB / 420.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005451/0.3536, allocations: 0.6889 MB / 420.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005988/0.3542, allocations: 67.48 kB / 421 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.457e-05/0.3543, allocations: 36 kB / 421 MB, free: 10.56 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.0003424/0.3547, allocations: 273.6 kB / 421.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3548, allocations: 193.8 kB / 421.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/0.3565, allocations: 0.735 MB / 422.2 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3565, allocations: 8 kB / 422.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.3565, allocations: 0.875 kB / 422.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3565, allocations: 7.969 kB / 422.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.3586, allocations: 1.306 MB / 423.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.506e-05/0.3587, allocations: 36 kB / 423.5 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002326/0.3589, allocations: 47.89 kB / 423.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002234/0.3592, allocations: 131.5 kB / 423.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.648e-05/0.3592, allocations: 17.19 kB / 423.7 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005155/0.3597, allocations: 0.6655 MB / 424.4 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3598, allocations: 4.031 kB / 424.4 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/0.3609, allocations: 0.7176 MB / 425.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004636/0.3614, allocations: 274.8 kB / 425.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.3616, allocations: 8 kB / 425.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004197/0.362, allocations: 31.95 kB / 425.4 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.3621, allocations: 31.97 kB / 425.5 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.3622, allocations: 28.92 kB / 425.5 MB, free: 5.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001111/0.3633, allocations: 0.9571 MB / 426.4 MB, free: 4.934 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3633, allocations: 4 kB / 426.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008872/0.3642, allocations: 331.8 kB / 426.8 MB, free: 4.605 MB / 334.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.0007883/0.365, allocations: 0.5764 MB / 427.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3662, allocations: 0.5129 MB / 427.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3662, allocations: 0 / 427.9 MB, free: 3.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005951/0.3668, allocations: 298.4 kB / 428.2 MB, free: 3.305 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.3681, allocations: 316.5 kB / 428.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003056/0.3711, allocations: 2.201 MB / 430.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005986/0.3717, allocations: 1.145 MB / 431.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004755/0.3722, allocations: 199.9 kB / 432 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.3724, allocations: 91.42 kB / 432.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3724, allocations: 0 / 432.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of Templates: time 0.0307/0.4031, allocations: 19.7 MB / 451.8 MB, free: 11.78 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches