Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.001319/0.001319, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00173/0.00173, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.578/1.578, allocations: 230.6 MB / 257.5 MB, free: 8.008 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.2003/0.2003, allocations: 38.52 MB / 352.4 MB, free: 12.53 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.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.002128/0.002128, allocations: 67.89 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3551, allocations: 62.46 MB / 0.542 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.006162/0.3613, allocations: 4.074 MB / 0.546 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.363, allocations: 0.9249 MB / 0.5469 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002819/0.3633, allocations: 14.66 kB / 0.5469 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.3635, allocations: 44.19 kB / 0.5469 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006228/0.3642, allocations: 160.7 kB / 0.5471 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002629/0.3644, allocations: 86.11 kB / 0.5472 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005691/0.365, allocations: 380.2 kB / 0.5475 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.3652, allocations: 57.8 kB / 0.5476 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004109/0.3656, allocations: 175 kB / 0.5478 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.366, allocations: 173.1 kB / 0.5479 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.993e-05/0.366, allocations: 16.31 kB / 0.5479 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.3661, allocations: 17.59 kB / 0.548 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.3662, allocations: 85.69 kB / 0.548 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.3664, allocations: 128.1 kB / 0.5482 GB, free: 11.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004112/0.3668, allocations: 260 kB / 0.5484 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3668, allocations: 0 / 0.5484 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3668, allocations: 0 / 0.5484 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.3669, allocations: 0 / 0.5484 GB, free: 11.48 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001073/0.3679, allocations: 0.4943 MB / 0.5489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.368, allocations: 13.95 kB / 0.5489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.747e-05/0.3681, allocations: 57.67 kB / 0.549 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.454e-05/0.3681, allocations: 30.12 kB / 0.549 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005789/0.3687, allocations: 272 kB / 0.5492 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.3687, allocations: 12.34 kB / 0.5493 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.3688, allocations: 28.55 kB / 0.5493 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004406/0.3692, allocations: 268.3 kB / 0.5495 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3692, allocations: 3.938 kB / 0.5495 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.271e-05/0.3693, allocations: 6.906 kB / 0.5496 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.3693, allocations: 5.156 kB / 0.5496 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002892/0.3695, allocations: 168.2 kB / 0.5497 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.371, allocations: 1.133 MB / 0.5508 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001632/0.3711, allocations: 80.39 kB / 0.5509 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.43e-05/0.3712, allocations: 28.41 kB / 0.5509 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.3712, allocations: 1.312 kB / 0.5509 GB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.3712, allocations: 35.72 kB / 0.551 GB, free: 9.219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.3712, allocations: 0 / 0.551 GB, free: 9.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.00075/0.372, allocations: 345.1 kB / 0.5513 GB, free: 8.934 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.3721, allocations: 79.23 kB / 0.5514 GB, free: 8.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/0.3723, allocations: 245.1 kB / 0.5516 GB, free: 8.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.3723, allocations: 29.7 kB / 0.5516 GB, free: 8.633 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.3725, allocations: 191.6 kB / 0.5518 GB, free: 8.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.339e-05/0.3725, allocations: 35.94 kB / 0.5518 GB, free: 8.422 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/0.3726, allocations: 43.3 kB / 0.5519 GB, free: 8.387 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3727, allocations: 331.8 kB / 0.5522 GB, free: 8.059 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.532e-05/0.3728, allocations: 27.8 kB / 0.5522 GB, free: 8.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.3729, allocations: 134 kB / 0.5524 GB, free: 7.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.3731, allocations: 165.3 kB / 0.5525 GB, free: 7.73 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.3731, allocations: 1.312 kB / 0.5525 GB, free: 7.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002818/0.3734, allocations: 177.9 kB / 0.5527 GB, free: 7.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.3734, allocations: 10.12 kB / 0.5527 GB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3734, allocations: 7.812 kB / 0.5527 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.3734, allocations: 4.75 kB / 0.5527 GB, free: 7.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.3736, allocations: 43.77 kB / 0.5527 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.3736, allocations: 5.594 kB / 0.5528 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001003/0.3737, allocations: 3.406 kB / 0.5528 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.3737, allocations: 15.94 kB / 0.5528 GB, free: 7.602 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (22): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.3739, allocations: 146.9 kB / 0.5529 GB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.3739, allocations: 33.52 kB / 0.5529 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001643/0.3741, allocations: 96.83 kB / 0.553 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.3741, allocations: 5.344 kB / 0.553 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3741, allocations: 1.375 kB / 0.553 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3741, allocations: 0 / 0.553 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005008/0.3746, allocations: 397.3 kB / 0.5534 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3746, allocations: 0 / 0.5534 GB, free: 6.996 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.381e-05/0.3747, allocations: 18.86 kB / 0.5534 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3747, allocations: 0 / 0.5534 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.3747, allocations: 2.438 kB / 0.5534 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3747, allocations: 5.812 kB / 0.5534 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3747, allocations: 3.938 kB / 0.5535 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.375, allocations: 227.8 kB / 0.5537 GB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.375, allocations: 22.69 kB / 0.5537 GB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.75e-05/0.3751, allocations: 5.031 kB / 0.5537 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.609e-05/0.3752, allocations: 1.094 kB / 0.5537 GB, free: 6.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.3752, allocations: 19.5 kB / 0.5537 GB, free: 6.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.3752, allocations: 2.281 kB / 0.5537 GB, free: 6.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001615/0.3754, allocations: 169 kB / 0.5539 GB, free: 6.637 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3754, allocations: 0 / 0.5539 GB, free: 6.637 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.3757, allocations: 38.66 kB / 0.5539 GB, free: 6.633 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005719/0.3762, allocations: 0.7621 MB / 0.5547 GB, free: 5.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.3764, allocations: 83.22 kB / 0.5547 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3764, allocations: 2.031 kB / 0.5547 GB, free: 5.867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.492e-05/0.3765, allocations: 27.89 kB / 0.5548 GB, free: 5.855 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.377, allocations: 59.38 kB / 0.5548 GB, free: 5.824 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.3801, allocations: 2.31 MB / 0.5571 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.3806, allocations: 0.7576 MB / 0.5578 GB, free: 3.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.3807, allocations: 28.05 kB / 0.5578 GB, free: 3.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.3808, allocations: 74.69 kB / 0.5579 GB, free: 3.039 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3808, allocations: 3.938 kB / 0.5579 GB, free: 3.035 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.4172, allocations: 4.367 MB / 0.5622 GB, free: 15.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.79, allocations: 14.42 kB / 0.5622 GB, free: 15.21 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source_fmu --startTime=0 --stopTime=0.2 --stepSize=0.00027027 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.746495674131438] Failed to read output from testmodel.py, exit status != 0: 11.895134920021519 11.910827369 11.540776967 Calling exit ...