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.001315/0.001315, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.0009223/0.0009223, allocations: 158.9 kB / 25.75 MB, free: 8.949 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.9/0.9, allocations: 158.6 MB / 187.6 MB, free: 2.941 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=2000,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=2000,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.443e-06/1.443e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.736e-05/1.881e-05, allocations: 6.25 kB / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005906/0.005924, allocations: 7.402 MB / 258.5 MB, free: 368 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.02099, allocations: 17.58 MB / 276.1 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.02207, allocations: 98.88 kB / 276.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.02384, allocations: 0.7397 MB / 276.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003679/0.02752, allocations: 1.854 MB / 278.8 MB, free: 12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00248/0.03, allocations: 1.3 MB / 280.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003362/0.03336, allocations: 3.282 MB / 283.4 MB, free: 7.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.03361, allocations: 124.9 kB / 283.5 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005254/0.03413, allocations: 0.7286 MB / 284.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003634/0.03449, allocations: 406.6 kB / 284.6 MB, free: 6.129 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.785e-05/0.03455, allocations: 40 kB / 284.6 MB, free: 6.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001984/0.03654, allocations: 1.066 MB / 285.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001046/0.03664, allocations: 166.8 kB / 285.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.03692, allocations: 382.8 kB / 286.2 MB, free: 4.484 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001702/0.03863, allocations: 1.806 MB / 288.1 MB, free: 2.672 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.03863, allocations: 0 / 288.1 MB, free: 2.672 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.03863, allocations: 0 / 288.1 MB, free: 2.672 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.03864, allocations: 0 / 288.1 MB, free: 2.672 MB / 266.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.00179/0.04043, allocations: 2.137 MB / 290.2 MB, free: 496 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.04047, allocations: 15.98 kB / 290.2 MB, free: 480 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.04065, allocations: 222.7 kB / 290.4 MB, free: 256 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001224/0.04187, allocations: 1.431 MB / 291.9 MB, free: 14.74 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.04189, allocations: 20.66 kB / 291.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.364e-05/0.04194, allocations: 24 kB / 291.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.04241, allocations: 330.6 kB / 292.2 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.04242, allocations: 0 / 292.2 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.04245, allocations: 15.94 kB / 292.2 MB, free: 14.35 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.04247, allocations: 11.98 kB / 292.2 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.04279, allocations: 251.8 kB / 292.5 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.04473, allocations: 1.489 MB / 294 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.04501, allocations: 180.1 kB / 294.2 MB, free: 12.37 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/0.0453, allocations: 252.6 kB / 294.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007839/0.05314, allocations: 7.795 MB / 302.2 MB, free: 4.109 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002482/0.05339, allocations: 180.8 kB / 302.4 MB, free: 3.918 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.853e-06/0.05339, allocations: 4 kB / 302.4 MB, free: 3.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008364/0.05423, allocations: 0.574 MB / 303 MB, free: 3.328 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.05427, allocations: 63.34 kB / 303 MB, free: 3.254 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/0.05544, allocations: 1.59 MB / 304.6 MB, free: 1.621 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.05547, allocations: 33.7 kB / 304.6 MB, free: 1.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004898/0.05596, allocations: 0.834 MB / 305.5 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.137e-05/0.05602, allocations: 95.28 kB / 305.6 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.05614, allocations: 131.7 kB / 305.7 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.05626, allocations: 0.4926 MB / 306.2 MB, free: 12 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.0564, allocations: 76.95 kB / 306.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.05664, allocations: 371.7 kB / 306.6 MB, free: 15.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006588/0.0573, allocations: 471.1 kB / 307.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.0573, allocations: 4 kB / 307.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006344/0.05794, allocations: 0.61 MB / 307.7 MB, free: 14.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.05795, allocations: 12.84 kB / 307.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.831e-05/0.05799, allocations: 43.94 kB / 307.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.05824, allocations: 131.6 kB / 307.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002251/0.05846, allocations: 103.8 kB / 308 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004638/0.05893, allocations: 0.9209 MB / 308.9 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.05919, allocations: 63.61 kB / 309 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-05/0.05923, allocations: 32 kB / 309 MB, free: 12.9 MB / 298.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.0002158/0.05945, allocations: 200.4 kB / 309.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.05958, allocations: 206.8 kB / 309.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008088/0.06039, allocations: 0.5937 MB / 310 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.06039, allocations: 0 / 310 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.748e-06/0.0604, allocations: 0 / 310 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.0604, allocations: 7.938 kB / 310 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.06153, allocations: 1.226 MB / 311.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/0.06156, allocations: 36 kB / 311.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.06166, allocations: 35.91 kB / 311.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001486/0.06181, allocations: 127.6 kB / 311.4 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.06184, allocations: 24.06 kB / 311.4 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003971/0.06223, allocations: 0.9054 MB / 312.3 MB, free: 9.434 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.06223, allocations: 3.938 kB / 312.4 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005143/0.06275, allocations: 0.6433 MB / 313 MB, free: 8.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.06295, allocations: 224.6 kB / 313.2 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.078e-05/0.06304, allocations: 8 kB / 313.2 MB, free: 8.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.06326, allocations: 15.98 kB / 313.2 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.01e-05/0.06335, allocations: 47.91 kB / 313.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.06338, allocations: 24 kB / 313.3 MB, free: 8.438 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0009874/0.06437, allocations: 0.8988 MB / 314.2 MB, free: 7.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.06437, allocations: 0 / 314.2 MB, free: 7.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005369/0.0649, allocations: 335.6 kB / 314.5 MB, free: 7.191 MB / 298.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.0006223/0.06553, allocations: 0.6166 MB / 315.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005103/0.06604, allocations: 374.3 kB / 315.5 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.06604, allocations: 0 / 315.5 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.06628, allocations: 224 kB / 315.7 MB, free: 5.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.06691, allocations: 271.3 kB / 316 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.06905, allocations: 2.118 MB / 318.1 MB, free: 3.508 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.06918, allocations: 215.1 kB / 318.3 MB, free: 3.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003111/0.06949, allocations: 207.9 kB / 318.5 MB, free: 3.066 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.801e-05/0.06959, allocations: 92.5 kB / 318.6 MB, free: 2.973 MB / 298.7 MB Notification: Performance of SimCode: time 1.072e-06/0.06959, allocations: 0 / 318.6 MB, free: 2.973 MB / 298.7 MB Notification: Performance of Templates: time 0.02241/0.092, allocations: 19.64 MB / 338.3 MB, free: 15.34 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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0547565990127623]