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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007819/0.0007819, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001041/0.001823, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000669/0.000669, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000983/0.001652, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8315/0.8315, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1397/0.9712, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.7 MB " [Timeout remaining time 179] 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=2000,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=2000,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.197e-05, allocations: 2.312 kB / 239.7 MB, free: 6.359 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008003/0.008025, allocations: 7.642 MB / 247.4 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01995/0.02797, allocations: 18.55 MB / 265.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008949/0.02887, allocations: 94.94 kB / 266 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001579/0.03045, allocations: 0.7954 MB / 266.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003742/0.03419, allocations: 1.824 MB / 268.6 MB, free: 9.379 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002732/0.03692, allocations: 1.309 MB / 270 MB, free: 8.062 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003231/0.04015, allocations: 3.324 MB / 273.3 MB, free: 4.727 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002406/0.04039, allocations: 144.8 kB / 273.4 MB, free: 4.551 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001376/0.04177, allocations: 1.7 MB / 275.1 MB, free: 2.797 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003814/0.04215, allocations: 434.5 kB / 275.5 MB, free: 2.371 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.475e-05/0.04222, allocations: 43.94 kB / 275.6 MB, free: 2.328 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.04431, allocations: 1.221 MB / 276.8 MB, free: 1.105 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.82e-05/0.0444, allocations: 134.9 kB / 276.9 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002607/0.04466, allocations: 346.9 kB / 277.3 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.04638, allocations: 1.678 MB / 279 MB, free: 14.95 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.364e-05/0.04639, allocations: 0 / 279 MB, free: 14.95 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.04639, allocations: 0 / 279 MB, free: 14.95 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.081e-05/0.04642, allocations: 0 / 279 MB, free: 14.95 MB / 282.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.001702/0.04813, allocations: 2.329 MB / 281.3 MB, free: 12.56 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.04816, allocations: 8.031 kB / 281.3 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.0483, allocations: 147.8 kB / 281.4 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009867/0.04928, allocations: 1.117 MB / 282.6 MB, free: 11.2 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.0493, allocations: 20.66 kB / 282.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.976e-05/0.04935, allocations: 24 kB / 282.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003331/0.04969, allocations: 285.4 kB / 282.9 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.0497, allocations: 0 / 282.9 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.04972, allocations: 12 kB / 282.9 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.04973, allocations: 11.94 kB / 282.9 MB, free: 10.85 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001726/0.0499, allocations: 120.5 kB / 283 MB, free: 10.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.05092, allocations: 0.8022 MB / 283.8 MB, free: 9.902 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.05112, allocations: 187.4 kB / 284 MB, free: 9.707 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.05129, allocations: 198.1 kB / 284.2 MB, free: 9.512 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/0.06495, allocations: 11.52 MB / 295.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.0652, allocations: 155.1 kB / 295.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.034e-06/0.06521, allocations: 0 / 295.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006526/0.06586, allocations: 350.1 kB / 296.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/0.06589, allocations: 55.41 kB / 296.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009612/0.06685, allocations: 1.322 MB / 297.6 MB, free: 11.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.06688, allocations: 33.7 kB / 297.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.06713, allocations: 420.2 kB / 298 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.118e-05/0.0672, allocations: 95.19 kB / 298.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.06733, allocations: 106 kB / 298.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.008e-05/0.06741, allocations: 325.9 kB / 298.5 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.06748, allocations: 40.98 kB / 298.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.06766, allocations: 250.8 kB / 298.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.068, allocations: 386.4 kB / 299.2 MB, free: 9.789 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.068, allocations: 4 kB / 299.2 MB, free: 9.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005106/0.06851, allocations: 398.5 kB / 299.6 MB, free: 9.387 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.06853, allocations: 8 kB / 299.6 MB, free: 9.379 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.232e-05/0.06857, allocations: 15.98 kB / 299.6 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001915/0.06877, allocations: 77.5 kB / 299.7 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.06917, allocations: 119.8 kB / 299.8 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003555/0.06953, allocations: 0.5717 MB / 300.4 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.06987, allocations: 55.66 kB / 300.4 MB, free: 8.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.521e-05/0.06991, allocations: 24 kB / 300.5 MB, free: 8.492 MB / 298.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.0001843/0.0701, allocations: 149.7 kB / 300.6 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.07022, allocations: 123.8 kB / 300.7 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007573/0.07098, allocations: 464.2 kB / 301.2 MB, free: 7.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.07098, allocations: 4 kB / 301.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.07098, allocations: 0 / 301.2 MB, free: 7.746 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.07099, allocations: 3.984 kB / 301.2 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009346/0.07192, allocations: 0.8855 MB / 302.1 MB, free: 6.812 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.31e-05/0.07196, allocations: 8 kB / 302.1 MB, free: 6.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.07209, allocations: 39.91 kB / 302.1 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002298/0.07232, allocations: 201.3 kB / 302.3 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001397/0.07246, allocations: 60.81 kB / 302.4 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.07248, allocations: 4.062 kB / 302.4 MB, free: 6.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003034/0.07278, allocations: 0.5679 MB / 302.9 MB, free: 5.906 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.07279, allocations: 8.062 kB / 303 MB, free: 5.898 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003821/0.07317, allocations: 389.3 kB / 303.3 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.07328, allocations: 11.94 kB / 303.3 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002675/0.07355, allocations: 15.97 kB / 303.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.097e-05/0.07363, allocations: 31.95 kB / 303.4 MB, free: 5.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.07366, allocations: 11.98 kB / 303.4 MB, free: 5.426 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005472/0.0742, allocations: 0.6829 MB / 304.1 MB, free: 4.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.0742, allocations: 0 / 304.1 MB, free: 4.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006568/0.07486, allocations: 327.6 kB / 304.4 MB, free: 4.398 MB / 298.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.0007659/0.07563, allocations: 0.6577 MB / 305.1 MB, free: 3.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004242/0.07605, allocations: 272.6 kB / 305.3 MB, free: 3.457 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-05/0.07607, allocations: 28.03 kB / 305.4 MB, free: 3.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.0763, allocations: 165.2 kB / 305.5 MB, free: 3.254 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.07824, allocations: 2.953 MB / 308.5 MB, free: 15.74 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004854/0.0831, allocations: 2.019 MB / 310.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.08324, allocations: 211.2 kB / 310.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003969/0.08364, allocations: 195.9 kB / 310.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004221/0.08406, allocations: 325.1 kB / 311.2 MB, free: 12.92 MB / 314.7 MB Notification: Performance of SimCode: time 1.123e-06/0.08406, allocations: 3.938 kB / 311.2 MB, free: 12.92 MB / 314.7 MB Notification: Performance of Templates: time 0.03112/0.1152, allocations: 22.9 MB / 334.1 MB, free: 6.254 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6967278020456433]