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.0009281/0.0009281, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00119/0.002118, allocations: 445.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007678/0.0007678, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001021/0.001789, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8646/0.8646, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1553/1.02, allocations: 49.49 MB / 220.5 MB, free: 1.453 MB / 218.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.673e-06/1.673e-06, allocations: 0 / 221.8 MB, free: 192 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.668e-05/1.835e-05, allocations: 9.344 kB / 221.8 MB, free: 184 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006832/0.00685, allocations: 7.32 MB / 229.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01761/0.02446, allocations: 17.63 MB / 246.8 MB, free: 7.117 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008522/0.02532, allocations: 98.88 kB / 246.9 MB, free: 7.02 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.02699, allocations: 0.7681 MB / 247.6 MB, free: 6.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003762/0.03075, allocations: 1.8 MB / 249.4 MB, free: 4.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002587/0.03334, allocations: 1.27 MB / 250.7 MB, free: 3.152 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003368/0.03671, allocations: 3.254 MB / 254 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.03699, allocations: 152.8 kB / 254.1 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001769/0.03876, allocations: 1.622 MB / 255.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005292/0.03929, allocations: 422.6 kB / 256.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.18e-05/0.03937, allocations: 40 kB / 256.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002166/0.04154, allocations: 1.101 MB / 257.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001012/0.04164, allocations: 138.9 kB / 257.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.04191, allocations: 346.9 kB / 257.8 MB, free: 12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001715/0.04362, allocations: 1.693 MB / 259.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.605e-05/0.04364, allocations: 0 / 259.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.04364, allocations: 0 / 259.5 MB, free: 10.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.04366, allocations: 0 / 259.5 MB, free: 10.3 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.00166/0.04532, allocations: 2.345 MB / 261.8 MB, free: 7.902 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.04536, allocations: 12.03 kB / 261.8 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.04548, allocations: 139.8 kB / 262 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.04652, allocations: 1.125 MB / 263.1 MB, free: 6.535 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.04654, allocations: 20.66 kB / 263.1 MB, free: 6.516 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.23e-05/0.04659, allocations: 31.94 kB / 263.1 MB, free: 6.484 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.04693, allocations: 281.4 kB / 263.4 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.04695, allocations: 0 / 263.4 MB, free: 6.199 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.04697, allocations: 19.97 kB / 263.4 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.04698, allocations: 12 kB / 263.4 MB, free: 6.168 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.04716, allocations: 116.5 kB / 263.5 MB, free: 6.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.04832, allocations: 0.8139 MB / 264.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.0485, allocations: 183.4 kB / 264.5 MB, free: 5.035 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.04869, allocations: 197.8 kB / 264.7 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01126/0.05995, allocations: 11.58 MB / 276.3 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.06015, allocations: 151.1 kB / 276.5 MB, free: 8.66 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 1.343e-06/0.06015, allocations: 0 / 276.5 MB, free: 8.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005057/0.06066, allocations: 346.1 kB / 276.8 MB, free: 8.312 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.06069, allocations: 63.34 kB / 276.9 MB, free: 8.238 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008648/0.06155, allocations: 1.33 MB / 278.2 MB, free: 6.871 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.06158, allocations: 33.7 kB / 278.2 MB, free: 6.832 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002015/0.06178, allocations: 416.3 kB / 278.6 MB, free: 6.418 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.216e-05/0.06183, allocations: 99.12 kB / 278.7 MB, free: 6.32 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.105e-05/0.06192, allocations: 106 kB / 278.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.706e-05/0.062, allocations: 329.9 kB / 279.2 MB, free: 5.883 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.763e-05/0.06206, allocations: 44.98 kB / 279.2 MB, free: 5.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.06219, allocations: 246.8 kB / 279.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.06244, allocations: 358 kB / 279.8 MB, free: 5.066 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.06244, allocations: 4 kB / 279.8 MB, free: 5.062 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003844/0.06283, allocations: 410.3 kB / 280.2 MB, free: 4.652 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.06284, allocations: 8 kB / 280.2 MB, free: 4.645 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.78e-05/0.06287, allocations: 12.88 kB / 280.2 MB, free: 4.633 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001384/0.063, allocations: 76.69 kB / 280.3 MB, free: 4.555 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.06321, allocations: 119.8 kB / 280.4 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003033/0.06351, allocations: 0.564 MB / 281 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002619/0.06377, allocations: 63.61 kB / 281 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.06382, allocations: 20 kB / 281.1 MB, free: 3.766 MB / 282.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.0001563/0.06397, allocations: 153.6 kB / 281.2 MB, free: 3.605 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.667e-05/0.06406, allocations: 119.8 kB / 281.3 MB, free: 3.488 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005824/0.06464, allocations: 465.2 kB / 281.8 MB, free: 3.027 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.06465, allocations: 4 kB / 281.8 MB, free: 3.023 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.06465, allocations: 3.984 kB / 281.8 MB, free: 3.02 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.06465, allocations: 4 kB / 281.8 MB, free: 3.016 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007473/0.0654, allocations: 0.8894 MB / 282.7 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/0.06542, allocations: 8 kB / 282.7 MB, free: 2.074 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.713e-05/0.06552, allocations: 43.89 kB / 282.7 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001762/0.06569, allocations: 193.3 kB / 282.9 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001088/0.0658, allocations: 68.81 kB / 283 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.06582, allocations: 4 kB / 283 MB, free: 1.766 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002454/0.06606, allocations: 0.5562 MB / 283.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.06606, allocations: 0 / 283.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000308/0.06637, allocations: 387.6 kB / 283.9 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.163e-05/0.06645, allocations: 8 kB / 283.9 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.06663, allocations: 20.14 kB / 283.9 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.06669, allocations: 39.88 kB / 284 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.06671, allocations: 8 kB / 284 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.1264/0.1931, allocations: 0.6818 MB / 284.7 MB, free: 40.97 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.1931, allocations: 0 / 284.7 MB, free: 40.97 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008798/0.194, allocations: 336.4 kB / 285 MB, free: 40.97 MB / 282.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.0008599/0.1948, allocations: 0.6586 MB / 285.7 MB, free: 40.89 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005181/0.1954, allocations: 270.8 kB / 285.9 MB, free: 40.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.886e-05/0.1954, allocations: 21.83 kB / 285.9 MB, free: 40.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001787/0.1956, allocations: 154.5 kB / 286.1 MB, free: 40.75 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008372/0.1964, allocations: 398.1 kB / 286.5 MB, free: 40.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004201/0.2006, allocations: 2.032 MB / 288.5 MB, free: 39.72 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001657/0.2008, allocations: 218.5 kB / 288.7 MB, free: 39.63 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003974/0.2012, allocations: 200.6 kB / 288.9 MB, free: 39.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000385/0.2016, allocations: 317.8 kB / 289.2 MB, free: 39.59 MB / 282.7 MB Notification: Performance of SimCode: time 1.232e-06/0.2016, allocations: 0 / 289.2 MB, free: 39.59 MB / 282.7 MB Notification: Performance of Templates: time 0.02876/0.2303, allocations: 23.21 MB / 312.4 MB, free: 26.92 MB / 282.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 -ignoreHideResult -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.082348628900945]