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.001781/0.001781, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.002407/0.002407, allocations: 180.9 kB / 23.71 MB, free: 4.695 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.479/1.479, allocations: 225.6 MB / 252.5 MB, free: 13 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.001554/0.001554, allocations: 47.92 kB / 370.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2954, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.01379/0.3092, allocations: 8.071 MB / 431.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02425/0.3335, allocations: 19.51 MB / 450.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.3345, allocations: 98.88 kB / 450.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002319/0.3368, allocations: 0.8537 MB / 451.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005389/0.3422, allocations: 1.838 MB / 453.5 MB, free: 216 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004009/0.3462, allocations: 1.363 MB / 454.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005773/0.352, allocations: 3.275 MB / 458.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.3523, allocations: 128.8 kB / 458.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008304/0.3531, allocations: 0.5912 MB / 458.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006844/0.3538, allocations: 0.559 MB / 459.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.3539, allocations: 47.94 kB / 459.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003836/0.3578, allocations: 1.432 MB / 460.9 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.358, allocations: 174.8 kB / 461 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007357/0.3587, allocations: 0.6754 MB / 461.7 MB, free: 7.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004985/0.3637, allocations: 2.233 MB / 463.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.3637, allocations: 0 / 463.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3637, allocations: 0 / 463.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.452e-05/0.3637, allocations: 0 / 463.9 MB, free: 5.676 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.003858/0.3676, allocations: 1.991 MB / 465.9 MB, free: 3.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.635e-05/0.3676, allocations: 11.97 kB / 466 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003019/0.3679, allocations: 198.8 kB / 466.1 MB, free: 3.434 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002246/0.3702, allocations: 1.249 MB / 467.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.3702, allocations: 20.66 kB / 467.4 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.876e-05/0.3703, allocations: 27.95 kB / 467.4 MB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001019/0.3713, allocations: 441.8 kB / 467.9 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.3713, allocations: 7.875 kB / 467.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.76e-05/0.3714, allocations: 8 kB / 467.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/0.3714, allocations: 8 kB / 467.9 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.3726, allocations: 482.3 kB / 468.4 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003163/0.3757, allocations: 1.554 MB / 469.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.3767, allocations: 343.4 kB / 470.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00078/0.3775, allocations: 373.8 kB / 470.6 MB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01399/0.3915, allocations: 7.015 MB / 477.6 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.3922, allocations: 275 kB / 477.9 MB, free: 7.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=29): time 2.274e-06/0.3922, allocations: 3.938 kB / 477.9 MB, free: 7.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.002191/0.3944, allocations: 0.7587 MB / 478.7 MB, free: 6.527 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.3944, allocations: 63.34 kB / 478.7 MB, free: 6.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001789/0.3962, allocations: 1.455 MB / 480.2 MB, free: 4.961 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.3963, allocations: 33.7 kB / 480.2 MB, free: 4.922 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006639/0.3969, allocations: 0.7193 MB / 480.9 MB, free: 4.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.397, allocations: 107.2 kB / 481 MB, free: 4.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.3972, allocations: 130 kB / 481.2 MB, free: 3.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.3974, allocations: 326 kB / 481.5 MB, free: 3.637 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004903/0.3979, allocations: 156.9 kB / 481.6 MB, free: 3.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.3986, allocations: 358.8 kB / 482 MB, free: 3.039 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.3997, allocations: 0.53 MB / 482.5 MB, free: 2.418 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.3997, allocations: 4 kB / 482.5 MB, free: 2.414 MB / 382.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001593/0.4013, allocations: 0.7613 MB / 483.3 MB, free: 1.645 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.4013, allocations: 8.094 kB / 483.3 MB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-05/0.4014, allocations: 44 kB / 483.3 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003267/0.4017, allocations: 132.8 kB / 483.5 MB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.4022, allocations: 103.8 kB / 483.6 MB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006907/0.4029, allocations: 0.685 MB / 484.3 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005662/0.4035, allocations: 79.52 kB / 484.3 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.377e-05/0.4035, allocations: 32 kB / 484.4 MB, free: 0.5391 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.0004162/0.404, allocations: 269.7 kB / 484.6 MB, free: 272 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.4042, allocations: 202.8 kB / 484.8 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.4061, allocations: 0.7392 MB / 485.6 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4061, allocations: 4 kB / 485.6 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4061, allocations: 0 / 485.6 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.4061, allocations: 7.984 kB / 485.6 MB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002365/0.4085, allocations: 1.283 MB / 486.9 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-05/0.4085, allocations: 36 kB / 486.9 MB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002647/0.4088, allocations: 39.95 kB / 486.9 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002586/0.4091, allocations: 128.9 kB / 487.1 MB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.567e-05/0.4091, allocations: 19.94 kB / 487.1 MB, free: 13.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006259/0.4097, allocations: 0.6695 MB / 487.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4097, allocations: 0 / 487.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.4112, allocations: 0.7212 MB / 488.5 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004691/0.4117, allocations: 212.6 kB / 488.7 MB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.4118, allocations: 8 kB / 488.7 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004428/0.4123, allocations: 23.97 kB / 488.7 MB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.4124, allocations: 43.88 kB / 488.8 MB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.4124, allocations: 24 kB / 488.8 MB, free: 11.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001345/0.4138, allocations: 0.961 MB / 489.7 MB, free: 11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4138, allocations: 7.938 kB / 489.7 MB, free: 11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008755/0.4147, allocations: 331.6 kB / 490.1 MB, free: 10.67 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.000839/0.4155, allocations: 0.5655 MB / 490.6 MB, free: 10.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001525/0.417, allocations: 0.5085 MB / 491.1 MB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.417, allocations: 0 / 491.1 MB, free: 9.574 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006989/0.4177, allocations: 279.1 kB / 491.4 MB, free: 9.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001349/0.4191, allocations: 311.1 kB / 491.7 MB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003587/0.4227, allocations: 2.241 MB / 494 MB, free: 6.695 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007761/0.4234, allocations: 1.141 MB / 495.1 MB, free: 5.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005288/0.424, allocations: 207.8 kB / 495.3 MB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.4241, allocations: 91.38 kB / 495.4 MB, free: 5.227 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4241, allocations: 0 / 495.4 MB, free: 5.227 MB / 398.1 MB Notification: Performance of Templates: time 0.03699/0.4611, allocations: 20.16 MB / 0.5035 GB, free: 1.215 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.337781748734415]