Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009206/0.0009206, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008707/0.0008707, allocations: 164.2 kB / 25.45 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8872/0.8872, allocations: 158.6 MB / 187.2 MB, free: 3.047 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.484e-05/2.652e-05, allocations: 6.281 kB / 299.7 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005335/0.005362, allocations: 6.649 MB / 306.3 MB, free: 240 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01423/0.0196, allocations: 15.87 MB / 322.2 MB, free: 304 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.02073, allocations: 94.94 kB / 322.3 MB, free: 208 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001676/0.0224, allocations: 0.7514 MB / 323.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004274/0.02668, allocations: 1.838 MB / 324.9 MB, free: 13.6 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.02954, allocations: 1.297 MB / 326.2 MB, free: 12.29 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003233/0.03277, allocations: 3.294 MB / 329.5 MB, free: 8.988 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/0.03303, allocations: 128.9 kB / 329.6 MB, free: 8.844 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006331/0.03366, allocations: 0.7286 MB / 330.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.03404, allocations: 394.6 kB / 330.7 MB, free: 7.727 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.247e-05/0.0341, allocations: 48 kB / 330.8 MB, free: 7.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.03607, allocations: 1.054 MB / 331.8 MB, free: 6.625 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.03619, allocations: 170.8 kB / 332 MB, free: 6.457 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003322/0.03652, allocations: 386.8 kB / 332.4 MB, free: 6.078 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002348/0.03887, allocations: 2.282 MB / 334.7 MB, free: 3.789 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.03888, allocations: 0 / 334.7 MB, free: 3.789 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.582e-06/0.03888, allocations: 0 / 334.7 MB, free: 3.789 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.382e-05/0.0389, allocations: 0 / 334.7 MB, free: 3.789 MB / 314.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.002114/0.04102, allocations: 1.994 MB / 336.7 MB, free: 1.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.04105, allocations: 11.98 kB / 336.7 MB, free: 1.738 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.04123, allocations: 206.7 kB / 336.9 MB, free: 1.535 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.04243, allocations: 1.265 MB / 338.1 MB, free: 192 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.04244, allocations: 20.59 kB / 338.2 MB, free: 172 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.0425, allocations: 28 kB / 338.2 MB, free: 144 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005669/0.04307, allocations: 433.8 kB / 338.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.04308, allocations: 4 kB / 338.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.04311, allocations: 12 kB / 338.6 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.04312, allocations: 12 kB / 338.6 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006097/0.04373, allocations: 478.3 kB / 339.1 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.04539, allocations: 1.421 MB / 340.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005058/0.0459, allocations: 355.3 kB / 340.9 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004191/0.04632, allocations: 373.6 kB / 341.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007704/0.05402, allocations: 6.996 MB / 348.2 MB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004072/0.05443, allocations: 251.2 kB / 348.5 MB, free: 5.566 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.334e-06/0.05443, allocations: 3.938 kB / 348.5 MB, free: 5.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001254/0.05568, allocations: 0.7664 MB / 349.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.05572, allocations: 59.34 kB / 349.3 MB, free: 4.715 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00124/0.05696, allocations: 1.476 MB / 350.8 MB, free: 3.203 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.05699, allocations: 37.7 kB / 350.8 MB, free: 3.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004732/0.05746, allocations: 0.7311 MB / 351.5 MB, free: 2.426 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.05e-05/0.05753, allocations: 91.22 kB / 351.6 MB, free: 2.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.05766, allocations: 126 kB / 351.8 MB, free: 2.207 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.05776, allocations: 326 kB / 352.1 MB, free: 1.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.058, allocations: 156.9 kB / 352.2 MB, free: 1.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003544/0.05836, allocations: 362.8 kB / 352.6 MB, free: 1.281 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005954/0.05895, allocations: 0.5372 MB / 353.1 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.05896, allocations: 0 / 353.1 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.1617/0.2206, allocations: 0.7514 MB / 353.9 MB, free: 62.94 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.996e-05/0.2207, allocations: 15.19 kB / 353.9 MB, free: 62.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001014/0.2208, allocations: 41.02 kB / 353.9 MB, free: 62.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004494/0.2212, allocations: 132.4 kB / 354.1 MB, free: 62.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004982/0.2217, allocations: 109.8 kB / 354.2 MB, free: 62.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006503/0.2224, allocations: 0.6797 MB / 354.8 MB, free: 62.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006906/0.223, allocations: 69.73 kB / 354.9 MB, free: 62.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.821e-05/0.2231, allocations: 34.14 kB / 354.9 MB, free: 62.41 MB / 330.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.0004788/0.2236, allocations: 276.8 kB / 355.2 MB, free: 62.3 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/0.2238, allocations: 205.4 kB / 355.4 MB, free: 62.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.2254, allocations: 0.7414 MB / 356.2 MB, free: 62.24 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.2254, allocations: 3.016 kB / 356.2 MB, free: 62.24 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2254, allocations: 1.125 kB / 356.2 MB, free: 62.24 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.2254, allocations: 1.547 kB / 356.2 MB, free: 62.24 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.2273, allocations: 1.2 MB / 357.4 MB, free: 61.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.546e-05/0.2273, allocations: 33.62 kB / 357.4 MB, free: 61.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.2275, allocations: 54.48 kB / 357.4 MB, free: 61.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002355/0.2278, allocations: 121.9 kB / 357.6 MB, free: 61.86 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.2278, allocations: 18.47 kB / 357.6 MB, free: 61.85 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004534/0.2283, allocations: 0.6669 MB / 358.3 MB, free: 61.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.2283, allocations: 2 kB / 358.3 MB, free: 61.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.2293, allocations: 0.7176 MB / 359 MB, free: 60.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003677/0.2297, allocations: 213.5 kB / 359.2 MB, free: 60.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.2298, allocations: 13.02 kB / 359.2 MB, free: 60.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.2302, allocations: 28.06 kB / 359.2 MB, free: 60.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.2303, allocations: 45.95 kB / 359.3 MB, free: 60.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.231e-05/0.2304, allocations: 19.81 kB / 359.3 MB, free: 60.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001361/0.2317, allocations: 0.9683 MB / 360.3 MB, free: 60.43 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2317, allocations: 0 / 360.3 MB, free: 60.43 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008781/0.2326, allocations: 335.9 kB / 360.6 MB, free: 60.41 MB / 330.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.0009689/0.2336, allocations: 0.6147 MB / 361.2 MB, free: 60.3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009851/0.2346, allocations: 0.4892 MB / 361.7 MB, free: 60.14 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.2346, allocations: 1.875 kB / 361.7 MB, free: 60.14 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004282/0.235, allocations: 284.1 kB / 362 MB, free: 60.03 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/0.2357, allocations: 255.2 kB / 362.2 MB, free: 59.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002932/0.2387, allocations: 2.25 MB / 364.5 MB, free: 58.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.2392, allocations: 0.5757 MB / 365 MB, free: 58.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.2393, allocations: 99.03 kB / 365.1 MB, free: 58.61 MB / 330.7 MB Notification: Performance of SimCode: time 7.91e-07/0.2393, allocations: 0 / 365.1 MB, free: 58.61 MB / 330.7 MB Notification: Performance of Templates: time 0.0178/0.2571, allocations: 26.85 MB / 392 MB, free: 34.31 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.897613227367401]