Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.001088/0.001088, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001172/0.001172, allocations: 172.6 kB / 24.92 MB, free: 8.727 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9802/0.9802, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2601/0.2601, allocations: 29.43 MB / 291.2 MB, free: 2.473 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i.[0-9,]+.|meterAC.p.[0-9,]+.|meterAC.v.[0-9,]+.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i.[0-9,]+.|meterAC.p.[0-9,]+.|meterAC.v.[0-9,]+.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.062e-06/1.062e-06, allocations: 0 / 316.8 MB, free: 0 / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.265e-05/2.372e-05, allocations: 2.312 kB / 316.8 MB, free: 16 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.00497/0.004994, allocations: 5.796 MB / 322.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.007356, allocations: 1.893 MB / 324.5 MB, free: 8.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002217/0.007578, allocations: 35.69 kB / 324.6 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006166/0.008195, allocations: 342.1 kB / 324.9 MB, free: 7.898 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004434/0.008638, allocations: 433.3 kB / 325.3 MB, free: 7.473 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.009124, allocations: 375 kB / 325.7 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006206/0.009744, allocations: 1.048 MB / 326.7 MB, free: 6.055 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003563/0.0101, allocations: 442.5 kB / 327.2 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005419/0.01064, allocations: 0.674 MB / 327.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004097/0.01105, allocations: 494.7 kB / 328.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.41e-05/0.01112, allocations: 68 kB / 328.4 MB, free: 4.387 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002834/0.0114, allocations: 267.4 kB / 328.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002276/0.01163, allocations: 399 kB / 329 MB, free: 3.734 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002042/0.01183, allocations: 291.3 kB / 329.3 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005874/0.01242, allocations: 0.8137 MB / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.01242, allocations: 0 / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.01242, allocations: 0 / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.01243, allocations: 0 / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.0009939/0.01342, allocations: 0.9723 MB / 331.1 MB, free: 1.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.01345, allocations: 15.98 kB / 331.1 MB, free: 1.617 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005633/0.01401, allocations: 196.6 kB / 331.3 MB, free: 1.426 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004944/0.01451, allocations: 479 kB / 331.8 MB, free: 0.9258 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.01454, allocations: 53.67 kB / 331.8 MB, free: 0.875 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.01464, allocations: 80.38 kB / 331.9 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.01518, allocations: 0.6027 MB / 332.5 MB, free: 160 kB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.0152, allocations: 0 / 332.5 MB, free: 160 kB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.01524, allocations: 27.98 kB / 332.6 MB, free: 132 kB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.83e-05/0.01534, allocations: 65.97 kB / 332.6 MB, free: 68 kB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004134/0.01575, allocations: 328.5 kB / 332.9 MB, free: 15.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.01792, allocations: 2.336 MB / 335.3 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.01829, allocations: 343.5 kB / 335.6 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.01846, allocations: 154.3 kB / 335.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.01849, allocations: 16.44 kB / 335.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.01851, allocations: 39.06 kB / 335.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of pre-optimization done (n=73): time 1.903e-06/0.01851, allocations: 0 / 335.8 MB, free: 12.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=75): time 0.001297/0.01981, allocations: 0.9938 MB / 336.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.163e-05/0.01984, allocations: 85.77 kB / 336.9 MB, free: 11.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002027/0.02004, allocations: 387 kB / 337.3 MB, free: 11.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.02008, allocations: 45.81 kB / 337.3 MB, free: 11.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.02019, allocations: 321.4 kB / 337.6 MB, free: 10.85 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.02032, allocations: 273.6 kB / 337.9 MB, free: 10.58 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.02045, allocations: 134.6 kB / 338 MB, free: 10.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.786e-05/0.02055, allocations: 378.6 kB / 338.4 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.02067, allocations: 100.8 kB / 338.5 MB, free: 9.965 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000187/0.02085, allocations: 287 kB / 338.8 MB, free: 9.613 MB / 314.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.0006605/0.02151, allocations: 0.7052 MB / 339.5 MB, free: 8.836 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.02152, allocations: 0 / 339.5 MB, free: 8.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0004965/0.02201, allocations: 486.9 kB / 340 MB, free: 8.352 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.02203, allocations: 8 kB / 340 MB, free: 8.344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.02204, allocations: 8 kB / 340 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001029/0.02214, allocations: 36.72 kB / 340 MB, free: 8.297 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003502/0.02249, allocations: 171.8 kB / 340.2 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004046/0.02654, allocations: 1.234 MB / 341.4 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000552/0.02709, allocations: 20 kB / 341.4 MB, free: 6.773 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/0.02716, allocations: 24.03 kB / 341.5 MB, free: 6.75 MB / 314.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003404/0.0275, allocations: 164.4 kB / 341.6 MB, free: 6.578 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.02768, allocations: 59.95 kB / 341.7 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008283/0.02851, allocations: 428.7 kB / 342.1 MB, free: 6.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.894e-05/0.02854, allocations: 15.98 kB / 342.1 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.02855, allocations: 4 kB / 342.1 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.02856, allocations: 7.984 kB / 342.1 MB, free: 6.062 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.0307, allocations: 1.163 MB / 343.3 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.0307, allocations: 4 kB / 343.3 MB, free: 4.809 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004968/0.0312, allocations: 131.8 kB / 343.4 MB, free: 4.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.0313, allocations: 29.34 kB / 343.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/0.03136, allocations: 28 kB / 343.5 MB, free: 4.621 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007976/0.03215, allocations: 1.233 MB / 344.7 MB, free: 3.289 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.03216, allocations: 4 kB / 344.7 MB, free: 3.285 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.03319, allocations: 0.783 MB / 345.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.738e-05/0.03327, allocations: 63.56 kB / 345.5 MB, free: 2.355 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.829e-05/0.03335, allocations: 19.98 kB / 345.6 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002713/0.03362, allocations: 16 kB / 345.6 MB, free: 2.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/0.03372, allocations: 64.28 kB / 345.6 MB, free: 2.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.304e-05/0.03376, allocations: 20 kB / 345.7 MB, free: 2.238 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001662/0.03393, allocations: 148.7 kB / 345.8 MB, free: 2.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.03393, allocations: 0 / 345.8 MB, free: 2.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006997/0.03463, allocations: 187.9 kB / 346 MB, free: 1.906 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002651/0.03489, allocations: 144.2 kB / 346.1 MB, free: 1.754 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008296/0.03572, allocations: 0.5115 MB / 346.6 MB, free: 1.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.365e-05/0.03573, allocations: 8 kB / 346.7 MB, free: 1.223 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004055/0.03614, allocations: 333.7 kB / 347 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/0.03683, allocations: 146.5 kB / 347.1 MB, free: 0.7422 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.03967, allocations: 1.514 MB / 348.6 MB, free: 15.13 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.0399, allocations: 215.3 kB / 348.8 MB, free: 14.9 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000353/0.04025, allocations: 101.2 kB / 348.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.04068, allocations: 181.3 kB / 349.1 MB, free: 14.62 MB / 330.7 MB Notification: Performance of SimCode: time 1.153e-06/0.04068, allocations: 0 / 349.1 MB, free: 14.62 MB / 330.7 MB Notification: Performance of Templates: time 0.01338/0.05406, allocations: 8.385 MB / 357.5 MB, free: 6.371 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","",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.1160734137520194]