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.000991/0.000991, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001815/0.001815, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9653/0.9653, allocations: 177.1 MB / 205 MB, free: 5.625 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.2365/0.2365, allocations: 29.42 MB / 290.9 MB, free: 2.496 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.723e-06/1.723e-06, allocations: 0 / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.445e-05/2.617e-05, allocations: 2.312 kB / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.005636/0.005662, allocations: 5.822 MB / 375.5 MB, free: 5.145 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003145/0.008808, allocations: 1.861 MB / 377.3 MB, free: 3.277 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004999/0.009308, allocations: 39.69 kB / 377.4 MB, free: 3.238 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000953/0.01026, allocations: 354 kB / 377.7 MB, free: 2.891 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009014/0.01116, allocations: 425.5 kB / 378.1 MB, free: 2.473 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008774/0.01204, allocations: 371 kB / 378.5 MB, free: 2.109 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001127/0.01317, allocations: 1.051 MB / 379.5 MB, free: 1.055 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007283/0.01389, allocations: 408.6 kB / 379.9 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.01496, allocations: 0.6741 MB / 380.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007979/0.01576, allocations: 0.5182 MB / 381.1 MB, free: 15.46 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.01591, allocations: 64 kB / 381.2 MB, free: 15.39 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000558/0.01647, allocations: 263.5 kB / 381.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003444/0.01682, allocations: 395 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000348/0.01716, allocations: 295.3 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001231/0.01839, allocations: 0.8137 MB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.732e-06/0.0184, allocations: 3.984 kB / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.0184, allocations: 0 / 382.9 MB, free: 13.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.536e-05/0.01843, allocations: 0 / 382.9 MB, free: 13.64 MB / 362.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.001741/0.02017, allocations: 1.168 MB / 384.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.02022, allocations: 15.98 kB / 384.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007871/0.021, allocations: 228.2 kB / 384.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007277/0.02173, allocations: 0.5407 MB / 384.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.02177, allocations: 45.67 kB / 384.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.02189, allocations: 76.56 kB / 385 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008847/0.02278, allocations: 0.6628 MB / 385.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.141e-05/0.0228, allocations: 4 kB / 385.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.849e-05/0.02285, allocations: 24 kB / 385.7 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/0.02299, allocations: 73.95 kB / 385.8 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006792/0.02367, allocations: 443.5 kB / 386.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003391/0.02706, allocations: 2.995 MB / 389.2 MB, free: 7.156 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/0.02769, allocations: 380.9 kB / 389.6 MB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.02798, allocations: 202 kB / 389.8 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.648e-05/0.02803, allocations: 12.48 kB / 389.8 MB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.436e-05/0.02807, allocations: 41.89 kB / 389.8 MB, free: 6.492 MB / 362.7 MB Notification: Performance of pre-optimization done (n=73): time 4.348e-06/0.02808, allocations: 0 / 389.8 MB, free: 6.492 MB / 362.7 MB Notification: Performance of matching and sorting (n=75): time 0.002231/0.03031, allocations: 1.426 MB / 391.3 MB, free: 5.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.03035, allocations: 85.77 kB / 391.3 MB, free: 4.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005923/0.03094, allocations: 458.4 kB / 391.8 MB, free: 4.461 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.45e-05/0.03098, allocations: 33.7 kB / 391.8 MB, free: 4.422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.03116, allocations: 431.2 kB / 392.2 MB, free: 3.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.03131, allocations: 277.6 kB / 392.5 MB, free: 3.719 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.03146, allocations: 152.3 kB / 392.7 MB, free: 3.562 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.03161, allocations: 0.5508 MB / 393.2 MB, free: 3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.03182, allocations: 133.9 kB / 393.3 MB, free: 2.867 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003/0.03212, allocations: 403 kB / 393.7 MB, free: 2.375 MB / 362.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.001051/0.03317, allocations: 0.9262 MB / 394.7 MB, free: 1.352 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.03318, allocations: 0 / 394.7 MB, free: 1.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0008369/0.03401, allocations: 0.6895 MB / 395.3 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.03404, allocations: 10.91 kB / 395.4 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.03405, allocations: 4 kB / 395.4 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.03418, allocations: 43.66 kB / 395.4 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004303/0.03461, allocations: 187.7 kB / 395.6 MB, free: 420 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009223/0.03553, allocations: 1.779 MB / 397.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.0358, allocations: 39.97 kB / 397.4 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/0.03585, allocations: 36 kB / 397.4 MB, free: 14.43 MB / 378.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.0002139/0.03606, allocations: 211.8 kB / 397.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.03618, allocations: 87.61 kB / 397.7 MB, free: 14.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007232/0.03691, allocations: 0.5659 MB / 398.3 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/0.03693, allocations: 15.94 kB / 398.3 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.03693, allocations: 4 kB / 398.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.03694, allocations: 4.125 kB / 398.3 MB, free: 13.53 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.03906, allocations: 1.471 MB / 399.8 MB, free: 11.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.03907, allocations: 4 kB / 399.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003627/0.03943, allocations: 151.8 kB / 399.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.211e-05/0.03953, allocations: 44.16 kB / 400 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.116e-05/0.03957, allocations: 16 kB / 400 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008204/0.04039, allocations: 1.779 MB / 401.8 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.04039, allocations: 4 kB / 401.8 MB, free: 9.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.04142, allocations: 1.01 MB / 402.8 MB, free: 8.703 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.746e-05/0.04151, allocations: 59.56 kB / 402.9 MB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.04156, allocations: 27.94 kB / 402.9 MB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001802/0.04174, allocations: 31.97 kB / 402.9 MB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.955e-05/0.04182, allocations: 64.27 kB / 403 MB, free: 8.523 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.04186, allocations: 24 kB / 403 MB, free: 8.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001903/0.04205, allocations: 287 kB / 403.3 MB, free: 8.219 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04205, allocations: 0 / 403.3 MB, free: 8.219 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005497/0.0426, allocations: 187.9 kB / 403.5 MB, free: 8.035 MB / 378.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.0002346/0.04283, allocations: 163 kB / 403.6 MB, free: 7.863 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008626/0.04369, allocations: 0.6662 MB / 404.3 MB, free: 7.176 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.0437, allocations: 0 / 404.3 MB, free: 7.176 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003662/0.04406, allocations: 435.8 kB / 404.7 MB, free: 6.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005437/0.04461, allocations: 141.4 kB / 404.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002772/0.04738, allocations: 1.688 MB / 406.5 MB, free: 4.789 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.04754, allocations: 219.3 kB / 406.8 MB, free: 4.555 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003384/0.04788, allocations: 165.1 kB / 406.9 MB, free: 4.391 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.04801, allocations: 60.48 kB / 407 MB, free: 4.328 MB / 378.7 MB Notification: Performance of SimCode: time 1.342e-06/0.04801, allocations: 0 / 407 MB, free: 4.328 MB / 378.7 MB Notification: Performance of Templates: time 0.01186/0.05987, allocations: 8.201 MB / 415.2 MB, free: 12.25 MB / 394.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.351363900117576]