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.001301/0.001301, allocations: 88.39 kB / 21.44 MB, free: 276 kB / 14.72 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.001361/0.001361, allocations: 164.2 kB / 24.71 MB, free: 3.543 MB / 14.72 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 1.323/1.323, allocations: 158.6 MB / 186.5 MB, free: 6.402 MB / 174.1 MB " [Timeout remaining time 178] 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.343e-06/1.343e-06, allocations: 0 / 298.9 MB, free: 8.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.15e-05/2.284e-05, allocations: 2.281 kB / 298.9 MB, free: 8.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00822/0.008242, allocations: 6.649 MB / 305.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0206/0.02884, allocations: 15.89 MB / 321.5 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.02992, allocations: 98.88 kB / 321.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002266/0.03219, allocations: 0.7358 MB / 322.3 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1637/0.1959, allocations: 1.85 MB / 324.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003999/0.1999, allocations: 1.29 MB / 325.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004591/0.2045, allocations: 3.294 MB / 328.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.2048, allocations: 127.9 kB / 328.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009536/0.2057, allocations: 0.7243 MB / 329.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006411/0.2063, allocations: 402.3 kB / 330 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.2065, allocations: 45.53 kB / 330 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.2093, allocations: 1.051 MB / 331.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.2094, allocations: 174.8 kB / 331.2 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004707/0.2099, allocations: 379.1 kB / 331.6 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002891/0.2128, allocations: 2.289 MB / 333.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2128, allocations: 0.6094 kB / 333.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2128, allocations: 1.062 kB / 333.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.036e-05/0.2128, allocations: 0 / 333.9 MB, free: 13.81 MB / 302.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.002834/0.2157, allocations: 1.984 MB / 335.9 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.2157, allocations: 21.02 kB / 335.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002106/0.2159, allocations: 202 kB / 336.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00157/0.2175, allocations: 1.263 MB / 337.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.488e-05/0.2175, allocations: 17.47 kB / 337.4 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.067e-05/0.2176, allocations: 35.08 kB / 337.4 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000911/0.2185, allocations: 434.9 kB / 337.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.2185, allocations: 0 / 337.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.724e-05/0.2186, allocations: 11.44 kB / 337.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.2186, allocations: 12.77 kB / 337.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.2197, allocations: 474.8 kB / 338.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.2223, allocations: 1.43 MB / 339.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008709/0.2231, allocations: 340.1 kB / 340.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006838/0.2238, allocations: 366.5 kB / 340.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.2342, allocations: 6.997 MB / 347.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005447/0.2348, allocations: 259.8 kB / 347.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.044e-06/0.2348, allocations: 0 / 347.7 MB, free: 8.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.00181/0.2366, allocations: 0.7767 MB / 348.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.2366, allocations: 55.41 kB / 348.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.2379, allocations: 1.479 MB / 350 MB, free: 5.711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.2379, allocations: 29.7 kB / 350 MB, free: 5.676 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000419/0.2383, allocations: 0.7262 MB / 350.8 MB, free: 4.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.885e-05/0.2384, allocations: 98.27 kB / 350.9 MB, free: 4.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.2385, allocations: 126 kB / 351 MB, free: 4.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.352e-05/0.2386, allocations: 322 kB / 351.3 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004089/0.239, allocations: 164.9 kB / 351.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004629/0.2395, allocations: 358.7 kB / 351.8 MB, free: 3.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000885/0.2403, allocations: 0.5415 MB / 352.4 MB, free: 3.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.2403, allocations: 4.875 kB / 352.4 MB, free: 3.195 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001245/0.2416, allocations: 0.7569 MB / 353.1 MB, free: 2.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2416, allocations: 8 kB / 353.1 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.952e-05/0.2417, allocations: 44 kB / 353.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002841/0.2419, allocations: 132.9 kB / 353.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004019/0.2423, allocations: 106.8 kB / 353.4 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004318/0.2428, allocations: 0.6794 MB / 354.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005681/0.2433, allocations: 79.52 kB / 354.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.2434, allocations: 35.62 kB / 354.2 MB, free: 1.383 MB / 302.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.000293/0.2437, allocations: 280.2 kB / 354.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/0.2438, allocations: 194.8 kB / 354.7 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001578/0.2454, allocations: 0.744 MB / 355.4 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2454, allocations: 4 kB / 355.4 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.2454, allocations: 3.938 kB / 355.4 MB, free: 176 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2454, allocations: 3.984 kB / 355.4 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00224/0.2477, allocations: 1.19 MB / 356.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-05/0.2477, allocations: 39.94 kB / 356.6 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002586/0.248, allocations: 47.14 kB / 356.7 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.2482, allocations: 127.6 kB / 356.8 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.2483, allocations: 20 kB / 356.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006354/0.2489, allocations: 0.6729 MB / 357.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2489, allocations: 4.031 kB / 357.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.2503, allocations: 0.7089 MB / 358.2 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004014/0.2507, allocations: 212.6 kB / 358.4 MB, free: 13.08 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.2509, allocations: 11.98 kB / 358.4 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.2513, allocations: 31.91 kB / 358.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.2515, allocations: 43.94 kB / 358.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.2515, allocations: 20 kB / 358.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00123/0.2527, allocations: 0.9731 MB / 359.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2527, allocations: 0 / 359.5 MB, free: 11.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009113/0.2537, allocations: 335.5 kB / 359.8 MB, free: 11.65 MB / 318.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.0009688/0.2546, allocations: 0.6041 MB / 360.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.256, allocations: 0.498 MB / 360.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.256, allocations: 4.719 kB / 360.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006932/0.2567, allocations: 271.8 kB / 361.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.2578, allocations: 265.9 kB / 361.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.2613, allocations: 2.21 MB / 363.7 MB, free: 7.895 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005843/0.2619, allocations: 0.5706 MB / 364.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004947/0.2624, allocations: 201.6 kB / 364.4 MB, free: 7.086 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.2625, allocations: 92.5 kB / 364.5 MB, free: 6.996 MB / 318.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2625, allocations: 4 kB / 364.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of Templates: time 0.03478/0.2973, allocations: 19.45 MB / 384 MB, free: 3.566 MB / 334.1 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] Reference file matches [Calling sys.exit(0), Time elapsed: 4.941381331533194]