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.001794/0.001794, allocations: 82.7 kB / 22 MB, free: 5.18 MB / 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.002014/0.002014, allocations: 161.8 kB / 25.25 MB, free: 3.02 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.274/1.274, allocations: 158.6 MB / 187 MB, free: 6.469 MB / 174.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 52.3 kB / 299.4 MB, free: 6.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1933, allocations: 49.16 MB / 348.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008136/0.2014, allocations: 6.643 MB / 355.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01996/0.2214, allocations: 15.87 MB / 371 MB, free: 8.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009533/0.2224, allocations: 98.88 kB / 371.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001949/0.2243, allocations: 0.7395 MB / 371.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004213/0.2285, allocations: 1.791 MB / 373.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.2315, allocations: 1.262 MB / 374.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004663/0.2361, allocations: 3.217 MB / 378.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.2364, allocations: 128.9 kB / 378.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007511/0.2372, allocations: 0.5366 MB / 378.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008083/0.238, allocations: 0.5278 MB / 379.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001082/0.2381, allocations: 40 kB / 379.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002298/0.2404, allocations: 1.058 MB / 380.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002044/0.2406, allocations: 170.8 kB / 380.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005712/0.2412, allocations: 0.5045 MB / 381.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002873/0.244, allocations: 2.256 MB / 383.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.2441, allocations: 3.984 kB / 383.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2441, allocations: 0 / 383.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.2441, allocations: 0 / 383.4 MB, free: 12.52 MB / 350.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.00311/0.2472, allocations: 1.998 MB / 385.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2472, allocations: 15.98 kB / 385.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002513/0.2475, allocations: 210.7 kB / 385.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/0.2495, allocations: 1.264 MB / 386.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.2495, allocations: 24.64 kB / 386.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.903e-05/0.2496, allocations: 31.94 kB / 386.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009791/0.2505, allocations: 437.8 kB / 387.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.2506, allocations: 0 / 387.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.378e-05/0.2506, allocations: 12 kB / 387.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.2506, allocations: 11.98 kB / 387.3 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.2518, allocations: 474.4 kB / 387.8 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002633/0.2544, allocations: 1.429 MB / 389.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009692/0.2554, allocations: 347.4 kB / 389.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007992/0.2562, allocations: 369.8 kB / 389.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/0.269, allocations: 6.989 MB / 396.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006238/0.2697, allocations: 251.2 kB / 397.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=29): time 1.764e-06/0.2697, allocations: 0 / 397.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=29): time 0.002125/0.2718, allocations: 0.7749 MB / 398 MB, free: 13.51 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.2718, allocations: 59.39 kB / 398 MB, free: 13.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001804/0.2736, allocations: 1.476 MB / 399.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.2737, allocations: 33.7 kB / 399.5 MB, free: 11.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007112/0.2744, allocations: 0.7311 MB / 400.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.2745, allocations: 95.2 kB / 400.3 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.2747, allocations: 126 kB / 400.5 MB, free: 10.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2748, allocations: 334 kB / 400.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000473/0.2753, allocations: 152.9 kB / 400.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006337/0.2759, allocations: 362.8 kB / 401.3 MB, free: 10 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001114/0.277, allocations: 0.5411 MB / 401.8 MB, free: 9.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.2771, allocations: 7.938 kB / 401.8 MB, free: 9.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001514/0.2786, allocations: 0.7563 MB / 402.6 MB, free: 8.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2786, allocations: 8 kB / 402.6 MB, free: 8.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.687e-05/0.2786, allocations: 44 kB / 402.6 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000305/0.279, allocations: 128.8 kB / 402.8 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.2794, allocations: 107.8 kB / 402.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00069/0.2801, allocations: 0.6852 MB / 403.6 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.2806, allocations: 75.53 kB / 403.6 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.209e-05/0.2807, allocations: 39.94 kB / 403.7 MB, free: 7.484 MB / 366.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.0003738/0.281, allocations: 269.7 kB / 403.9 MB, free: 7.211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.2812, allocations: 198.8 kB / 404.1 MB, free: 7.016 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/0.2831, allocations: 0.7426 MB / 404.9 MB, free: 6.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.2831, allocations: 4 kB / 404.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2831, allocations: 7.938 kB / 404.9 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2831, allocations: 0 / 404.9 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.2853, allocations: 1.193 MB / 406.1 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-05/0.2853, allocations: 40 kB / 406.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.2856, allocations: 39.95 kB / 406.2 MB, free: 4.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002446/0.2858, allocations: 124.8 kB / 406.3 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.85e-05/0.2859, allocations: 20 kB / 406.3 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006473/0.2865, allocations: 0.6852 MB / 407 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2865, allocations: 0 / 407 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.2879, allocations: 0.7211 MB / 407.7 MB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003838/0.2883, allocations: 220.5 kB / 407.9 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.2884, allocations: 11.94 kB / 407.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004267/0.2889, allocations: 27.95 kB / 408 MB, free: 3.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.289, allocations: 35.95 kB / 408 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.289, allocations: 24 kB / 408 MB, free: 3.008 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00125/0.2903, allocations: 0.9653 MB / 409 MB, free: 2.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2903, allocations: 0 / 409 MB, free: 2.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007801/0.2911, allocations: 331.6 kB / 409.3 MB, free: 1.699 MB / 366.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.000806/0.2919, allocations: 0.5814 MB / 409.9 MB, free: 1.105 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.2931, allocations: 0.5007 MB / 410.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2932, allocations: 0 / 410.4 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006766/0.2938, allocations: 279.3 kB / 410.7 MB, free: 316 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000906/0.2947, allocations: 263.2 kB / 410.9 MB, free: 48 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003397/0.2981, allocations: 2.267 MB / 413.2 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/0.2987, allocations: 0.5705 MB / 413.8 MB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005075/0.2992, allocations: 199.9 kB / 414 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.2994, allocations: 92.44 kB / 414 MB, free: 12.84 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2994, allocations: 0 / 414 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Templates: time 0.03376/0.3331, allocations: 19.56 MB / 433.6 MB, free: 9.23 MB / 398.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins1/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.837875726050697]