Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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.001371/0.001371, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001444/0.001444, allocations: 209.6 kB / 23.73 MB, free: 4.387 MB / 14.72 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.504/1.504, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1978/0.1978, allocations: 38.57 MB / 352.5 MB, free: 12.39 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 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.002065/0.002065, allocations: 68.17 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3076, allocations: 62.46 MB / 0.5419 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009548/0.3172, allocations: 6.214 MB / 0.548 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00433/0.3215, allocations: 1.811 MB / 0.5498 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000534/0.322, allocations: 41.91 kB / 0.5498 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001418/0.3234, allocations: 433.4 kB / 0.5502 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009351/0.3244, allocations: 423.5 kB / 0.5506 GB, free: 9.605 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009921/0.3254, allocations: 356.2 kB / 0.551 GB, free: 9.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001246/0.3266, allocations: 1.035 MB / 0.552 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006101/0.3272, allocations: 413.5 kB / 0.5524 GB, free: 8.488 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00071/0.3279, allocations: 486.8 kB / 0.5528 GB, free: 8.211 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008163/0.3288, allocations: 0.5805 MB / 0.5534 GB, free: 7.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.3289, allocations: 66.78 kB / 0.5535 GB, free: 7.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005616/0.3294, allocations: 264.1 kB / 0.5537 GB, free: 7.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003725/0.3298, allocations: 383.8 kB / 0.5541 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004066/0.3302, allocations: 350.6 kB / 0.5544 GB, free: 7.32 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00121/0.3314, allocations: 1.058 MB / 0.5555 GB, free: 6.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3314, allocations: 4 kB / 0.5555 GB, free: 6.531 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3314, allocations: 0 / 0.5555 GB, free: 6.531 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.3314, allocations: 0 / 0.5555 GB, free: 6.531 MB / 398.1 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.002211/0.3336, allocations: 1.072 MB / 0.5565 GB, free: 5.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3337, allocations: 15.98 kB / 0.5565 GB, free: 5.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000155/0.3338, allocations: 114.8 kB / 0.5566 GB, free: 5.285 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008958/0.3347, allocations: 168.2 kB / 0.5568 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.336, allocations: 0.5516 MB / 0.5573 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.996e-05/0.3361, allocations: 45.69 kB / 0.5574 GB, free: 4.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001841/0.3362, allocations: 79.92 kB / 0.5575 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/0.3379, allocations: 1.006 MB / 0.5584 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.3379, allocations: 11.98 kB / 0.5584 GB, free: 3.359 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.427e-05/0.338, allocations: 24 kB / 0.5585 GB, free: 3.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000217/0.3382, allocations: 69.95 kB / 0.5585 GB, free: 3.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001647/0.3398, allocations: 0.9719 MB / 0.5595 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005445/0.3453, allocations: 3.024 MB / 0.5624 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001255/0.3465, allocations: 0.6257 MB / 0.5631 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006741/0.3472, allocations: 397.4 kB / 0.5634 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.528e-05/0.3473, allocations: 4.5 kB / 0.5634 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.3473, allocations: 43 kB / 0.5635 GB, free: 14.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 6.582e-06/0.3473, allocations: 3.984 kB / 0.5635 GB, free: 14.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004204/0.3515, allocations: 2.227 MB / 0.5657 GB, free: 11.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.3516, allocations: 81.77 kB / 0.5657 GB, free: 11.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005354/0.3521, allocations: 457.6 kB / 0.5662 GB, free: 11.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.516e-05/0.3522, allocations: 37.7 kB / 0.5662 GB, free: 11.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000275/0.3525, allocations: 372.4 kB / 0.5666 GB, free: 10.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000235/0.3527, allocations: 265.7 kB / 0.5668 GB, free: 10.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/0.3529, allocations: 154.6 kB / 0.567 GB, free: 10.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001896/0.3531, allocations: 374.8 kB / 0.5673 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005676/0.3537, allocations: 345.8 kB / 0.5676 GB, free: 9.707 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007131/0.3544, allocations: 0.5224 MB / 0.5682 GB, free: 9.113 MB / 414.1 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.005446/0.3598, allocations: 2.159 MB / 0.5703 GB, free: 6.887 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/0.3599, allocations: 8 kB / 0.5703 GB, free: 6.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001829/0.3617, allocations: 1.031 MB / 0.5713 GB, free: 5.836 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.3617, allocations: 7.984 kB / 0.5713 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3617, allocations: 8 kB / 0.5713 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.3619, allocations: 36.78 kB / 0.5713 GB, free: 5.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007995/0.3627, allocations: 191.7 kB / 0.5715 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00144/0.3641, allocations: 1.381 MB / 0.5729 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004747/0.3646, allocations: 35.97 kB / 0.5729 GB, free: 4.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.51e-05/0.3647, allocations: 35.98 kB / 0.5729 GB, free: 4.023 MB / 414.1 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.0004624/0.3651, allocations: 283.8 kB / 0.5732 GB, free: 3.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.3653, allocations: 63.58 kB / 0.5733 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/0.3669, allocations: 0.8914 MB / 0.5741 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/0.3669, allocations: 20.12 kB / 0.5742 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.3669, allocations: 3.938 kB / 0.5742 GB, free: 2.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.3669, allocations: 3.984 kB / 0.5742 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.3705, allocations: 1.845 MB / 0.576 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.3705, allocations: 7.938 kB / 0.576 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007079/0.3712, allocations: 159.7 kB / 0.5761 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001182/0.3713, allocations: 32.84 kB / 0.5762 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.726e-05/0.3714, allocations: 23.98 kB / 0.5762 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001292/0.3727, allocations: 1.389 MB / 0.5775 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/0.3727, allocations: 8.062 kB / 0.5775 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/0.375, allocations: 1.458 MB / 0.579 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.3752, allocations: 63.59 kB / 0.579 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.937e-05/0.3753, allocations: 31.97 kB / 0.5791 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003757/0.3756, allocations: 27.97 kB / 0.5791 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.3757, allocations: 64.28 kB / 0.5791 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.419e-05/0.3758, allocations: 28 kB / 0.5792 GB, free: 13.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003968/0.3762, allocations: 307 kB / 0.5795 GB, free: 13.01 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3762, allocations: 0 / 0.5795 GB, free: 13.01 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007634/0.377, allocations: 187.9 kB / 0.5796 GB, free: 12.83 MB / 430.1 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.002698/0.3797, allocations: 2.05 MB / 0.5816 GB, free: 10.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.3813, allocations: 0.9154 MB / 0.5825 GB, free: 9.766 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.3813, allocations: 0 / 0.5825 GB, free: 9.766 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007743/0.3821, allocations: 498.8 kB / 0.583 GB, free: 9.266 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009192/0.383, allocations: 151.9 kB / 0.5832 GB, free: 9.125 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.3938, allocations: 6.915 MB / 0.5899 GB, free: 1.863 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/0.3943, allocations: 424.3 kB / 0.5903 GB, free: 1.426 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006335/0.395, allocations: 201.4 kB / 0.5905 GB, free: 1.227 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004504/0.3954, allocations: 271.3 kB / 0.5908 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3954, allocations: 0 / 0.5908 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05914/0.4545, allocations: 15.63 MB / 0.606 GB, free: 1.555 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.56, allocations: 3.984 kB / 0.606 GB, free: 1.551 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.377106455154717] Failed to read output from testmodel.py, exit status != 0: 12.683195664081722 12.699879391 12.365142209 Calling exit ...