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.001338/0.001338, allocations: 109 kB / 21.23 MB, free: 0.6641 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.001489/0.001489, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.437/1.437, allocations: 230.6 MB / 258.3 MB, free: 8.039 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.001967/0.001967, allocations: 72.75 kB / 379 MB, free: 2.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2437, allocations: 53.37 MB / 432.4 MB, free: 6.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008863/0.2525, allocations: 8.075 MB / 440.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02219/0.2747, allocations: 19.55 MB / 460 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009655/0.2757, allocations: 94.94 kB / 460.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002192/0.2779, allocations: 0.8542 MB / 461 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005105/0.283, allocations: 1.839 MB / 462.8 MB, free: 8.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003684/0.2867, allocations: 1.355 MB / 464.2 MB, free: 7.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005177/0.2918, allocations: 3.318 MB / 467.5 MB, free: 3.734 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003046/0.2921, allocations: 132.8 kB / 467.6 MB, free: 3.578 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008591/0.293, allocations: 0.5951 MB / 468.2 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007033/0.2937, allocations: 0.5512 MB / 468.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.884e-05/0.2938, allocations: 40 kB / 468.8 MB, free: 2.387 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/0.2972, allocations: 1.459 MB / 470.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.2973, allocations: 166.8 kB / 470.4 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006019/0.2979, allocations: 0.6793 MB / 471.1 MB, free: 80 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003172/0.3011, allocations: 2.218 MB / 473.3 MB, free: 13.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3011, allocations: 4 kB / 473.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3011, allocations: 0 / 473.3 MB, free: 13.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.483e-05/0.3011, allocations: 0 / 473.3 MB, free: 13.84 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.002988/0.3041, allocations: 1.998 MB / 475.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.3042, allocations: 8.031 kB / 475.3 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.3044, allocations: 202.7 kB / 475.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001864/0.3062, allocations: 1.257 MB / 476.8 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.3063, allocations: 20.66 kB / 476.8 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.846e-05/0.3064, allocations: 31.94 kB / 476.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009059/0.3073, allocations: 433.8 kB / 477.3 MB, free: 9.781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.3073, allocations: 3.938 kB / 477.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.3073, allocations: 8 kB / 477.3 MB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.3073, allocations: 12 kB / 477.3 MB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.3084, allocations: 478.3 kB / 477.8 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.3112, allocations: 1.558 MB / 479.3 MB, free: 7.676 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008946/0.3121, allocations: 343.4 kB / 479.6 MB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007055/0.3128, allocations: 373.9 kB / 480 MB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01238/0.3252, allocations: 7.031 MB / 487 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006005/0.3258, allocations: 263.2 kB / 487.3 MB, free: 15.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=29): time 2.164e-06/0.3258, allocations: 0 / 487.3 MB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.001932/0.3277, allocations: 0.7625 MB / 488.1 MB, free: 14.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.3277, allocations: 67.28 kB / 488.1 MB, free: 14.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.3294, allocations: 1.455 MB / 489.6 MB, free: 13.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.3294, allocations: 37.7 kB / 489.6 MB, free: 13.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006251/0.3301, allocations: 0.7193 MB / 490.3 MB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.3302, allocations: 95.28 kB / 490.4 MB, free: 12.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001789/0.3304, allocations: 134 kB / 490.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3305, allocations: 322 kB / 490.9 MB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.3309, allocations: 156.9 kB / 491 MB, free: 11.64 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005812/0.3315, allocations: 358.8 kB / 491.4 MB, free: 11.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.3325, allocations: 0.5493 MB / 491.9 MB, free: 10.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.3325, allocations: 4 kB / 491.9 MB, free: 10.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001415/0.3339, allocations: 0.7523 MB / 492.7 MB, free: 9.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.334, allocations: 8 kB / 492.7 MB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.679e-05/0.334, allocations: 43.98 kB / 492.7 MB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/0.3343, allocations: 128.8 kB / 492.9 MB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/0.3347, allocations: 112 kB / 493 MB, free: 9.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006308/0.3354, allocations: 0.6772 MB / 493.7 MB, free: 8.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005023/0.3359, allocations: 71.59 kB / 493.7 MB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.597e-05/0.3359, allocations: 32 kB / 493.8 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.0003766/0.3363, allocations: 277.7 kB / 494 MB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002046/0.3365, allocations: 198.7 kB / 494.2 MB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.3382, allocations: 0.7348 MB / 495 MB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.3382, allocations: 0 / 495 MB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3383, allocations: 0 / 495 MB, free: 7.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3383, allocations: 4 kB / 495 MB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.3404, allocations: 1.287 MB / 496.2 MB, free: 6.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.57e-05/0.3405, allocations: 40.06 kB / 496.3 MB, free: 6.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/0.3407, allocations: 48 kB / 496.3 MB, free: 6.027 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002399/0.3409, allocations: 120.8 kB / 496.4 MB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.341, allocations: 31.86 kB / 496.5 MB, free: 5.875 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005859/0.3416, allocations: 0.6617 MB / 497.1 MB, free: 5.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3416, allocations: 11.98 kB / 497.2 MB, free: 5.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.3428, allocations: 0.7102 MB / 497.9 MB, free: 4.438 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003836/0.3432, allocations: 212.6 kB / 498.1 MB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.3434, allocations: 8 kB / 498.1 MB, free: 4.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.3438, allocations: 27.89 kB / 498.1 MB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.3439, allocations: 43.89 kB / 498.1 MB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/0.3439, allocations: 31.98 kB / 498.2 MB, free: 4.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001182/0.3451, allocations: 0.9571 MB / 499.1 MB, free: 3.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3451, allocations: 0 / 499.1 MB, free: 3.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000794/0.3459, allocations: 331.6 kB / 499.5 MB, free: 2.82 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.0007973/0.3467, allocations: 0.5693 MB / 0.4883 GB, free: 2.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.3479, allocations: 0.496 MB / 0.4888 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3479, allocations: 0 / 0.4888 GB, free: 1.734 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007078/0.3486, allocations: 284 kB / 0.4891 GB, free: 1.445 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.3498, allocations: 298.9 kB / 0.4894 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003407/0.3532, allocations: 2.257 MB / 0.4916 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007514/0.354, allocations: 1.157 MB / 0.4927 GB, free: 13.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005021/0.3545, allocations: 203.9 kB / 0.4929 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.3546, allocations: 83.44 kB / 0.493 GB, free: 13.38 MB / 414.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3546, allocations: 0 / 0.493 GB, free: 13.38 MB / 414.1 MB Notification: Performance of Templates: time 0.03547/0.3901, allocations: 20.21 MB / 0.5127 GB, free: 9.301 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.957175992429256]