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.001839/0.001839, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 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.002245/0.002245, allocations: 185.5 kB / 23.71 MB, free: 4.434 MB / 14.72 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 1.46/1.46, allocations: 225.7 MB / 252.5 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] 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=1999,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=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 51.91 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2478/0.2496, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008539/0.2581, allocations: 6.916 MB / 430 MB, free: 7.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02283/0.281, allocations: 16.66 MB / 446.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.2823, allocations: 94.88 kB / 446.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002546/0.2848, allocations: 0.769 MB / 447.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007064/0.2919, allocations: 1.811 MB / 449.3 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004712/0.2966, allocations: 1.324 MB / 450.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005953/0.3026, allocations: 3.279 MB / 453.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003734/0.3029, allocations: 124.8 kB / 454 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.3041, allocations: 0.595 MB / 454.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008156/0.3049, allocations: 0.5356 MB / 455.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001143/0.305, allocations: 40 kB / 455.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004037/0.3091, allocations: 1.167 MB / 456.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002097/0.3093, allocations: 166.9 kB / 456.5 MB, free: 12.85 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006465/0.3099, allocations: 0.5006 MB / 457 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003872/0.3138, allocations: 2.241 MB / 459.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.3138, allocations: 4 kB / 459.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3138, allocations: 4 kB / 459.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.111e-05/0.3138, allocations: 0 / 459.3 MB, free: 10.09 MB / 366.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.003533/0.3174, allocations: 1.99 MB / 461.3 MB, free: 8.055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.3174, allocations: 8.031 kB / 461.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.3177, allocations: 210.7 kB / 461.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002197/0.3199, allocations: 1.245 MB / 462.7 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.3199, allocations: 24.59 kB / 462.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.72e-05/0.32, allocations: 27.95 kB / 462.8 MB, free: 6.465 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009446/0.3209, allocations: 437.8 kB / 463.2 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.321, allocations: 3.938 kB / 463.2 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.321, allocations: 8 kB / 463.2 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.321, allocations: 15.98 kB / 463.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.3221, allocations: 474.4 kB / 463.7 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.3251, allocations: 1.421 MB / 465.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009242/0.326, allocations: 339.3 kB / 465.5 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008003/0.3268, allocations: 381.7 kB / 465.8 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/0.3406, allocations: 6.965 MB / 472.8 MB, free: 12.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006509/0.3413, allocations: 251.2 kB / 473 MB, free: 11.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.475e-06/0.3413, allocations: 0 / 473 MB, free: 11.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002128/0.3434, allocations: 0.7704 MB / 473.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.3435, allocations: 55.41 kB / 473.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.3454, allocations: 1.475 MB / 475.3 MB, free: 9.574 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.3455, allocations: 29.7 kB / 475.4 MB, free: 9.539 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006887/0.3462, allocations: 0.7232 MB / 476.1 MB, free: 8.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.3463, allocations: 99.2 kB / 476.2 MB, free: 8.715 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001845/0.3464, allocations: 126 kB / 476.3 MB, free: 8.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3466, allocations: 330 kB / 476.6 MB, free: 8.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004641/0.3471, allocations: 164.8 kB / 476.8 MB, free: 8.094 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006126/0.3477, allocations: 350.9 kB / 477.1 MB, free: 7.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001176/0.3489, allocations: 0.5454 MB / 477.7 MB, free: 7.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3489, allocations: 4 kB / 477.7 MB, free: 7.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001534/0.3504, allocations: 0.7596 MB / 478.4 MB, free: 6.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.3504, allocations: 10.19 kB / 478.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.799e-05/0.3505, allocations: 40 kB / 478.5 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000347/0.3508, allocations: 137.6 kB / 478.6 MB, free: 6.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004799/0.3513, allocations: 107.8 kB / 478.7 MB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007517/0.3521, allocations: 0.6811 MB / 479.4 MB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005486/0.3526, allocations: 71.59 kB / 479.5 MB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.331e-05/0.3527, allocations: 32 kB / 479.5 MB, free: 5.152 MB / 382.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.000428/0.3531, allocations: 273.7 kB / 479.8 MB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.3533, allocations: 202.7 kB / 480 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.3552, allocations: 0.7354 MB / 480.7 MB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.3552, allocations: 4 kB / 480.7 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3552, allocations: 0 / 480.7 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3552, allocations: 0 / 480.7 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.3574, allocations: 1.204 MB / 481.9 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.276e-05/0.3575, allocations: 32 kB / 482 MB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/0.3577, allocations: 47.95 kB / 482 MB, free: 2.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002577/0.358, allocations: 132.8 kB / 482.1 MB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.358, allocations: 19.94 kB / 482.1 MB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000667/0.3587, allocations: 0.6733 MB / 482.8 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3587, allocations: 0 / 482.8 MB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.3601, allocations: 0.7212 MB / 483.5 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004606/0.3605, allocations: 216.6 kB / 483.8 MB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.3607, allocations: 4 kB / 483.8 MB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004233/0.3611, allocations: 23.97 kB / 483.8 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3612, allocations: 43.94 kB / 483.8 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.775e-05/0.3613, allocations: 28 kB / 483.9 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001318/0.3626, allocations: 0.9571 MB / 484.8 MB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3626, allocations: 0 / 484.8 MB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008981/0.3635, allocations: 335.5 kB / 485.1 MB, free: 15.38 MB / 398.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.0008592/0.3643, allocations: 0.571 MB / 485.7 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0013/0.3656, allocations: 0.4968 MB / 486.2 MB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3656, allocations: 0 / 486.2 MB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006654/0.3663, allocations: 275.5 kB / 486.5 MB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.3676, allocations: 311 kB / 486.8 MB, free: 13.7 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.3712, allocations: 2.233 MB / 489 MB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/0.3718, allocations: 0.5704 MB / 489.6 MB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005238/0.3723, allocations: 199.8 kB / 489.8 MB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.3724, allocations: 87.44 kB / 489.9 MB, free: 10.53 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3724, allocations: 4 kB / 489.9 MB, free: 10.53 MB / 398.1 MB Notification: Performance of Templates: time 0.03674/0.4092, allocations: 21.37 MB / 0.4993 GB, free: 5.387 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.17593140900135]