Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.001377/0.001377, allocations: 81.86 kB / 21.42 MB, free: 3.074 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.001421/0.001421, allocations: 168.3 kB / 24.82 MB, free: 8.773 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 1.057/1.057, allocations: 177.1 MB / 205.3 MB, free: 5.527 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.3594/0.3594, allocations: 29.43 MB / 291.2 MB, free: 2.461 MB / 266.7 MB " [Timeout remaining time 179] 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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 370.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.392e-05/2.586e-05, allocations: 2.312 kB / 370.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005656/0.005682, allocations: 5.279 MB / 375.4 MB, free: 5.445 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.008072, allocations: 1.398 MB / 376.8 MB, free: 4.043 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004302/0.008502, allocations: 35.69 kB / 376.8 MB, free: 4.008 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004285/0.00893, allocations: 130.9 kB / 376.9 MB, free: 3.879 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007512/0.009682, allocations: 389.7 kB / 377.3 MB, free: 3.496 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000459/0.01014, allocations: 195.5 kB / 377.5 MB, free: 3.305 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008876/0.01103, allocations: 0.9459 MB / 378.5 MB, free: 2.355 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.01139, allocations: 167.2 kB / 378.6 MB, free: 2.191 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000873/0.01227, allocations: 0.596 MB / 379.2 MB, free: 1.594 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000521/0.01279, allocations: 410.9 kB / 379.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.581e-05/0.01286, allocations: 44 kB / 379.7 MB, free: 1.148 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.682e-05/0.01296, allocations: 44 kB / 379.7 MB, free: 1.105 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.01316, allocations: 283.2 kB / 380 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.01334, allocations: 219.5 kB / 380.2 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005529/0.01389, allocations: 486.2 kB / 380.7 MB, free: 140 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.01389, allocations: 3.938 kB / 380.7 MB, free: 136 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.0139, allocations: 0 / 380.7 MB, free: 136 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.01391, allocations: 0 / 380.7 MB, free: 136 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001179/0.01509, allocations: 0.9531 MB / 381.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.01513, allocations: 15.98 kB / 381.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.01526, allocations: 108.5 kB / 381.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007733/0.01604, allocations: 470 kB / 382.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.01606, allocations: 37.38 kB / 382.2 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.01612, allocations: 52.31 kB / 382.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.01657, allocations: 437.5 kB / 382.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.01658, allocations: 4 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.087e-05/0.01661, allocations: 20 kB / 382.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.702e-05/0.0167, allocations: 21 kB / 382.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.01694, allocations: 182.7 kB / 382.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00188/0.01882, allocations: 2.049 MB / 385 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.01921, allocations: 290.1 kB / 385.3 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.0195, allocations: 200 kB / 385.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.287e-05/0.01953, allocations: 15.89 kB / 385.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.01956, allocations: 41.39 kB / 385.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.256e-06/0.01956, allocations: 0 / 385.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.001602/0.02117, allocations: 0.9098 MB / 386.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.02121, allocations: 85.09 kB / 386.5 MB, free: 9.988 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002616/0.02147, allocations: 422.4 kB / 386.9 MB, free: 9.559 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.02149, allocations: 33.7 kB / 387 MB, free: 9.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.02165, allocations: 351.6 kB / 387.3 MB, free: 9.168 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.606e-05/0.02175, allocations: 178.4 kB / 387.5 MB, free: 8.992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/0.02185, allocations: 108.1 kB / 387.6 MB, free: 8.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.022, allocations: 0.539 MB / 388.1 MB, free: 8.328 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.821e-05/0.02208, allocations: 57.27 kB / 388.2 MB, free: 8.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.02223, allocations: 241.9 kB / 388.4 MB, free: 7.969 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.0005547/0.02279, allocations: 0.4892 MB / 388.9 MB, free: 7.414 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.02279, allocations: 0 / 388.9 MB, free: 7.414 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0007032/0.0235, allocations: 456.2 kB / 389.4 MB, free: 6.957 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.02352, allocations: 8 kB / 389.4 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.02353, allocations: 8.469 kB / 389.4 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.02376, allocations: 98.83 kB / 389.5 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.02399, allocations: 103.8 kB / 389.6 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001567/0.02556, allocations: 2.381 MB / 392 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.02573, allocations: 15.94 kB / 392 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.02576, allocations: 23.92 kB / 392 MB, free: 4.215 MB / 362.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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002172/0.02597, allocations: 196.4 kB / 392.2 MB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.02605, allocations: 59.72 kB / 392.2 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005022/0.02655, allocations: 402.1 kB / 392.6 MB, free: 3.547 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.02656, allocations: 8 kB / 392.6 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.02656, allocations: 0 / 392.6 MB, free: 3.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-06/0.02657, allocations: 3.984 kB / 392.6 MB, free: 3.535 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.02766, allocations: 0.9441 MB / 393.6 MB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.02767, allocations: 3.984 kB / 393.6 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.02785, allocations: 68.05 kB / 393.7 MB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002326/0.02808, allocations: 103.1 kB / 393.8 MB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.0281, allocations: 12 kB / 393.8 MB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001425/0.02952, allocations: 2.397 MB / 396.2 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.02953, allocations: 11.92 kB / 396.2 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007965/0.03032, allocations: 0.6549 MB / 396.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.319e-05/0.03039, allocations: 43.66 kB / 396.9 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.03043, allocations: 19.94 kB / 396.9 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.03054, allocations: 8 kB / 396.9 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.628e-05/0.0306, allocations: 39.92 kB / 396.9 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.03061, allocations: 12 kB / 397 MB, free: 14.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001348/0.03075, allocations: 259 kB / 397.2 MB, free: 14.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03075, allocations: 4 kB / 397.2 MB, free: 14.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004334/0.03118, allocations: 144 kB / 397.4 MB, free: 14.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001344/0.03132, allocations: 115.1 kB / 397.5 MB, free: 14.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005528/0.03187, allocations: 0.4974 MB / 398 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.03187, allocations: 0 / 398 MB, free: 13.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003153/0.03219, allocations: 394.4 kB / 398.3 MB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.03265, allocations: 128.9 kB / 398.5 MB, free: 13.44 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.03435, allocations: 1.141 MB / 399.6 MB, free: 12.24 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001346/0.03448, allocations: 185.9 kB / 399.8 MB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.03466, allocations: 64.66 kB / 399.9 MB, free: 11.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.03487, allocations: 174.1 kB / 400 MB, free: 11.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.03487, allocations: 0 / 400 MB, free: 11.8 MB / 378.7 MB Notification: Performance of Templates: time 0.009725/0.04459, allocations: 7.185 MB / 407.2 MB, free: 4.727 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.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.5020375880412757]