Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.009024/0.009024, allocations: 106.1 kB / 21.98 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002346/0.002346, allocations: 216.4 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 259 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.89 kB / 379.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2437, allocations: 53.36 MB / 433.2 MB, free: 6.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009013/0.2527, allocations: 8.075 MB / 441.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02309/0.2758, allocations: 19.55 MB / 460.8 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001686/0.2775, allocations: 90.94 kB / 460.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002705/0.2802, allocations: 0.8625 MB / 461.7 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005811/0.286, allocations: 1.831 MB / 463.6 MB, free: 8.438 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004971/0.291, allocations: 1.363 MB / 464.9 MB, free: 7.074 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006445/0.2974, allocations: 3.322 MB / 468.3 MB, free: 3.742 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.2978, allocations: 124.9 kB / 468.4 MB, free: 3.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009439/0.2987, allocations: 0.5912 MB / 469 MB, free: 3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008442/0.2996, allocations: 0.5551 MB / 469.5 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.2997, allocations: 44 kB / 469.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004559/0.3043, allocations: 1.455 MB / 471 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002721/0.3045, allocations: 166.8 kB / 471.2 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008389/0.3054, allocations: 0.6831 MB / 471.9 MB, free: 92 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004055/0.3094, allocations: 2.218 MB / 474.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3094, allocations: 0 / 474.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3094, allocations: 7.984 kB / 474.1 MB, free: 13.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.17e-05/0.3094, allocations: 0 / 474.1 MB, free: 13.85 MB / 382.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.003214/0.3127, allocations: 1.994 MB / 476.1 MB, free: 11.81 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.3127, allocations: 8.031 kB / 476.1 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002446/0.3129, allocations: 206.7 kB / 476.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.3149, allocations: 1.249 MB / 477.5 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.315, allocations: 20.66 kB / 477.6 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.315, allocations: 27.98 kB / 477.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009304/0.316, allocations: 429.9 kB / 478 MB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.316, allocations: 3.938 kB / 478 MB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.316, allocations: 12 kB / 478 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.138e-05/0.3161, allocations: 15.98 kB / 478 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.3171, allocations: 474.3 kB / 478.5 MB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002964/0.3201, allocations: 1.566 MB / 480.1 MB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009102/0.321, allocations: 343.3 kB / 480.4 MB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007229/0.3217, allocations: 369.9 kB / 480.8 MB, free: 6.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01331/0.335, allocations: 7.027 MB / 487.8 MB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006532/0.3357, allocations: 271.1 kB / 488.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.054e-06/0.3357, allocations: 0 / 488.1 MB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.002106/0.3378, allocations: 0.7781 MB / 488.8 MB, free: 14.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.677e-05/0.3379, allocations: 63.28 kB / 488.9 MB, free: 14.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001857/0.3397, allocations: 1.452 MB / 490.4 MB, free: 13.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/0.3398, allocations: 33.7 kB / 490.4 MB, free: 13.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006593/0.3404, allocations: 0.7193 MB / 491.1 MB, free: 12.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.792e-05/0.3405, allocations: 99.25 kB / 491.2 MB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001831/0.3407, allocations: 130 kB / 491.3 MB, free: 12.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3409, allocations: 326 kB / 491.6 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004473/0.3413, allocations: 160.9 kB / 491.8 MB, free: 11.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005967/0.3419, allocations: 358.8 kB / 492.2 MB, free: 11.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001047/0.3429, allocations: 0.5416 MB / 492.7 MB, free: 10.56 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.3429, allocations: 7.938 kB / 492.7 MB, free: 10.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001553/0.3445, allocations: 0.7479 MB / 493.5 MB, free: 9.797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3445, allocations: 8 kB / 493.5 MB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.209e-05/0.3446, allocations: 40 kB / 493.5 MB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003297/0.3449, allocations: 141.5 kB / 493.6 MB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004187/0.3453, allocations: 103.8 kB / 493.7 MB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006821/0.346, allocations: 0.6734 MB / 494.4 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005491/0.3466, allocations: 79.64 kB / 494.5 MB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.351e-05/0.3466, allocations: 36 kB / 494.5 MB, free: 8.695 MB / 398.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.0004384/0.3471, allocations: 265.7 kB / 494.8 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002033/0.3473, allocations: 198.7 kB / 495 MB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001842/0.3491, allocations: 0.7386 MB / 495.7 MB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3491, allocations: 0 / 495.7 MB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3491, allocations: 4 kB / 495.7 MB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3491, allocations: 3.984 kB / 495.7 MB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002265/0.3514, allocations: 1.283 MB / 497 MB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.779e-05/0.3515, allocations: 36 kB / 497 MB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002427/0.3517, allocations: 43.89 kB / 497.1 MB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002438/0.3519, allocations: 120.8 kB / 497.2 MB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.352, allocations: 31.81 kB / 497.2 MB, free: 5.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006182/0.3526, allocations: 0.6696 MB / 497.9 MB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.556e-06/0.3526, allocations: 8.016 kB / 497.9 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.3539, allocations: 0.714 MB / 498.6 MB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.3543, allocations: 216.6 kB / 498.8 MB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.3545, allocations: 8 kB / 498.8 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004207/0.3549, allocations: 27.97 kB / 498.9 MB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.355, allocations: 43.88 kB / 498.9 MB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.252e-05/0.3551, allocations: 24.12 kB / 498.9 MB, free: 4.133 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001306/0.3564, allocations: 0.9571 MB / 499.9 MB, free: 3.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3564, allocations: 0 / 499.9 MB, free: 3.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008645/0.3572, allocations: 335.5 kB / 0.4885 GB, free: 2.828 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.0008567/0.3581, allocations: 0.577 MB / 0.4891 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.3595, allocations: 0.4888 MB / 0.4895 GB, free: 1.742 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3595, allocations: 4.125 kB / 0.4895 GB, free: 1.738 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006356/0.3601, allocations: 279.2 kB / 0.4898 GB, free: 1.453 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.3613, allocations: 309.6 kB / 0.4901 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.365, allocations: 2.294 MB / 0.4923 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007893/0.3658, allocations: 1.157 MB / 0.4935 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.366, allocations: 91.44 kB / 0.4936 GB, free: 13.53 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.366, allocations: 0 / 0.4936 GB, free: 13.53 MB / 414.1 MB Notification: Performance of Templates: time 0.03525/0.4012, allocations: 25.99 MB / 0.5189 GB, free: 3.59 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mp.S.v Variables in the result:mp.S.v,time [Calling sys.exit(0), Time elapsed: 9.419569114921615]