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.001352/0.001352, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001433/0.001433, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.489/1.489, allocations: 230.6 MB / 258.3 MB, free: 7.801 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.2135/0.2135, allocations: 38.56 MB / 353.2 MB, free: 12.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="cs",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.002212/0.002212, allocations: 59.91 kB / 493.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3469, allocations: 62.45 MB / 0.5427 GB, free: 272 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005801/0.3527, allocations: 3.876 MB / 0.5465 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001589/0.3543, allocations: 0.8431 MB / 0.5473 GB, free: 12.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.3544, allocations: 18.75 kB / 0.5473 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.3546, allocations: 43.53 kB / 0.5474 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000561/0.3552, allocations: 169.4 kB / 0.5475 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.3554, allocations: 86.86 kB / 0.5476 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.3559, allocations: 372.4 kB / 0.548 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.3561, allocations: 65.81 kB / 0.548 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003886/0.3565, allocations: 178.8 kB / 0.5482 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003523/0.3569, allocations: 164.4 kB / 0.5484 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.3569, allocations: 16.88 kB / 0.5484 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.671e-05/0.357, allocations: 21.22 kB / 0.5484 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.3571, allocations: 86.72 kB / 0.5485 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.3573, allocations: 104.1 kB / 0.5486 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000416/0.3577, allocations: 261.9 kB / 0.5488 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3577, allocations: 0 / 0.5488 GB, free: 11.64 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3577, allocations: 0 / 0.5488 GB, free: 11.64 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.3577, allocations: 1.031 kB / 0.5488 GB, free: 11.64 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.001034/0.3588, allocations: 0.4918 MB / 0.5493 GB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/0.3588, allocations: 13.48 kB / 0.5493 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.694e-05/0.3589, allocations: 10.59 kB / 0.5493 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.516e-05/0.3589, allocations: 57.72 kB / 0.5494 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.173e-05/0.359, allocations: 29.94 kB / 0.5494 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.3596, allocations: 268 kB / 0.5497 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.3596, allocations: 11.72 kB / 0.5497 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.47e-05/0.3596, allocations: 21.81 kB / 0.5497 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004287/0.36, allocations: 265.4 kB / 0.55 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3601, allocations: 4.906 kB / 0.55 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.627e-05/0.3601, allocations: 18.28 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3601, allocations: 5.156 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002709/0.3604, allocations: 159.8 kB / 0.5501 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.3618, allocations: 1.106 MB / 0.5512 GB, free: 9.551 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.362, allocations: 81.34 kB / 0.5513 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.24e-05/0.362, allocations: 31.91 kB / 0.5513 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.3621, allocations: 1.281 kB / 0.5513 GB, free: 9.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/0.3621, allocations: 35.78 kB / 0.5514 GB, free: 9.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.3621, allocations: 0 / 0.5514 GB, free: 9.406 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0008048/0.3629, allocations: 341.8 kB / 0.5517 GB, free: 9.125 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.363, allocations: 79.08 kB / 0.5518 GB, free: 9.031 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002938/0.3633, allocations: 252.6 kB / 0.552 GB, free: 8.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.3633, allocations: 31.36 kB / 0.552 GB, free: 8.816 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.3635, allocations: 191.2 kB / 0.5522 GB, free: 8.637 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.694e-05/0.3635, allocations: 36.12 kB / 0.5522 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.723e-05/0.3636, allocations: 42.88 kB / 0.5523 GB, free: 8.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3638, allocations: 328.7 kB / 0.5526 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.904e-05/0.3638, allocations: 26.52 kB / 0.5526 GB, free: 8.234 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.364, allocations: 124.8 kB / 0.5527 GB, free: 8.094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.3642, allocations: 163.3 kB / 0.5529 GB, free: 7.93 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3642, allocations: 2.531 kB / 0.5529 GB, free: 7.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002842/0.3645, allocations: 181 kB / 0.5531 GB, free: 7.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3645, allocations: 10.88 kB / 0.5531 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.3645, allocations: 2.938 kB / 0.5531 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.3645, allocations: 5.312 kB / 0.5531 GB, free: 7.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.3647, allocations: 40.3 kB / 0.5531 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.3647, allocations: 8.453 kB / 0.5531 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.3648, allocations: 16.45 kB / 0.5532 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.3648, allocations: 8.781 kB / 0.5532 GB, free: 7.797 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.0001507/0.3649, allocations: 154.1 kB / 0.5533 GB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.641e-05/0.365, allocations: 21.31 kB / 0.5533 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001693/0.3652, allocations: 97.62 kB / 0.5534 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.3652, allocations: 1.438 kB / 0.5534 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3652, allocations: 1.5 kB / 0.5534 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3652, allocations: 3.938 kB / 0.5534 GB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005072/0.3657, allocations: 389.5 kB / 0.5538 GB, free: 7.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3657, allocations: 4.031 kB / 0.5538 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.762e-05/0.3658, allocations: 19.3 kB / 0.5538 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3658, allocations: 1.125 kB / 0.5538 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.3658, allocations: 1.125 kB / 0.5538 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-06/0.3658, allocations: 5.125 kB / 0.5538 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.3658, allocations: 1.094 kB / 0.5538 GB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.3661, allocations: 237.1 kB / 0.5541 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.238e-05/0.3661, allocations: 17.59 kB / 0.5541 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.3661, allocations: 1.906 kB / 0.5541 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.7e-05/0.3662, allocations: 1.125 kB / 0.5541 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.68e-05/0.3663, allocations: 15.7 kB / 0.5541 GB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3663, allocations: 3.031 kB / 0.5541 GB, free: 6.965 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000164/0.3664, allocations: 172.4 kB / 0.5543 GB, free: 6.844 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3664, allocations: 0 / 0.5543 GB, free: 6.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.3667, allocations: 43.25 kB / 0.5543 GB, free: 6.836 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.0005901/0.3673, allocations: 0.7559 MB / 0.555 GB, free: 6.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001927/0.3675, allocations: 88.38 kB / 0.5551 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3675, allocations: 0 / 0.5551 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.138e-05/0.3676, allocations: 27.98 kB / 0.5551 GB, free: 6.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004845/0.3681, allocations: 57.03 kB / 0.5552 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002844/0.3709, allocations: 2.314 MB / 0.5575 GB, free: 4.074 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.3711, allocations: 145.9 kB / 0.5576 GB, free: 3.965 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.934e-05/0.3712, allocations: 31.17 kB / 0.5576 GB, free: 3.949 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.3713, allocations: 75.09 kB / 0.5577 GB, free: 3.887 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3713, allocations: 4 kB / 0.5577 GB, free: 3.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.399, allocations: 4.528 MB / 0.5621 GB, free: 15.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.03, allocations: 4 kB / 0.5621 GB, free: 15.83 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.901208031922579] Failed to read output from testmodel.py, exit status != 0: 12.18876689102035 12.203555611 11.842756479 Calling exit ...