Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.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.001353/0.001353, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001479/0.001479, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.446/1.446, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.1853/0.1853, allocations: 38.52 MB / 353.2 MB, free: 12.56 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.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.CityTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest",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.002033/0.002033, allocations: 67.89 kB / 493.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3071, allocations: 62.46 MB / 0.5428 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.CityTest): time 0.007528/0.3146, allocations: 3.77 MB / 0.5464 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004528/0.3192, allocations: 1.98 MB / 0.5484 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003061/0.3195, allocations: 13.44 kB / 0.5484 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001139/0.3206, allocations: 239.1 kB / 0.5486 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.3219, allocations: 313.8 kB / 0.5489 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007951/0.3227, allocations: 186.8 kB / 0.5491 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008479/0.3235, allocations: 449.3 kB / 0.5495 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004162/0.324, allocations: 157.1 kB / 0.5497 GB, free: 11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006718/0.3246, allocations: 224 kB / 0.5499 GB, free: 10.86 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004647/0.3251, allocations: 193 kB / 0.5501 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.834e-05/0.3252, allocations: 28.88 kB / 0.5501 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.3264, allocations: 383.4 kB / 0.5505 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.3266, allocations: 115.9 kB / 0.5506 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002588/0.3269, allocations: 156.9 kB / 0.5507 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.3281, allocations: 0.568 MB / 0.5513 GB, free: 9.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3282, allocations: 0 / 0.5513 GB, free: 9.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3282, allocations: 0 / 0.5513 GB, free: 9.984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.3282, allocations: 1.156 kB / 0.5513 GB, free: 9.984 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001381/0.3295, allocations: 0.5841 MB / 0.5518 GB, free: 9.469 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.503e-05/0.3296, allocations: 14.83 kB / 0.5519 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.531e-05/0.3296, allocations: 8.344 kB / 0.5519 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001058/0.3297, allocations: 62.81 kB / 0.5519 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001267/0.331, allocations: 90.44 kB / 0.552 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008846/0.3319, allocations: 315.7 kB / 0.5523 GB, free: 9.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.494e-05/0.3319, allocations: 24.77 kB / 0.5523 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.654e-05/0.332, allocations: 15.66 kB / 0.5524 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009344/0.3329, allocations: 353.1 kB / 0.5527 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.3329, allocations: 1.094 kB / 0.5527 GB, free: 8.828 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.278e-05/0.333, allocations: 14.3 kB / 0.5527 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.915e-05/0.333, allocations: 20.73 kB / 0.5527 GB, free: 8.809 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009507/0.334, allocations: 389.6 kB / 0.5531 GB, free: 8.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00299/0.337, allocations: 1.508 MB / 0.5546 GB, free: 7.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009305/0.3379, allocations: 298 kB / 0.5549 GB, free: 7.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/0.3382, allocations: 101.6 kB / 0.555 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.316e-05/0.3382, allocations: 16.69 kB / 0.555 GB, free: 7.047 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004703/0.3387, allocations: 192.9 kB / 0.5552 GB, free: 6.898 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.896e-06/0.3387, allocations: 0 / 0.5552 GB, free: 6.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001108/0.3398, allocations: 385.2 kB / 0.5555 GB, free: 6.711 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.3399, allocations: 140.1 kB / 0.5557 GB, free: 6.547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005718/0.3405, allocations: 311.7 kB / 0.5559 GB, free: 6.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.3406, allocations: 37.06 kB / 0.556 GB, free: 6.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.3408, allocations: 172.7 kB / 0.5561 GB, free: 6.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.3409, allocations: 84.27 kB / 0.5562 GB, free: 6.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.341, allocations: 60.62 kB / 0.5563 GB, free: 6.027 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00022/0.3413, allocations: 347.7 kB / 0.5566 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002795/0.3415, allocations: 95.58 kB / 0.5567 GB, free: 5.641 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.3419, allocations: 183.2 kB / 0.5569 GB, free: 5.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007064/0.3426, allocations: 304.1 kB / 0.5572 GB, free: 5.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3426, allocations: 1.469 kB / 0.5572 GB, free: 5.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009565/0.3436, allocations: 354 kB / 0.5575 GB, free: 5.012 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3436, allocations: 16.25 kB / 0.5575 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.3436, allocations: 0 / 0.5575 GB, free: 4.996 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.3436, allocations: 4 kB / 0.5575 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004061/0.344, allocations: 75.83 kB / 0.5576 GB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.3441, allocations: 7.938 kB / 0.5576 GB, free: 4.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002686/0.3443, allocations: 27.78 kB / 0.5576 GB, free: 4.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.3444, allocations: 8 kB / 0.5576 GB, free: 4.875 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.city.data.nextTimeEvent,$whenCondition1,city.data.nextTimeEventScaled,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEvent,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.000281/0.3447, allocations: 181.7 kB / 0.5578 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.791e-05/0.3447, allocations: 27.81 kB / 0.5578 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009968/0.3457, allocations: 348 kB / 0.5582 GB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.3458, allocations: 4 kB / 0.5582 GB, free: 4.305 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.3458, allocations: 3.938 kB / 0.5582 GB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.3458, allocations: 3.938 kB / 0.5582 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.3473, allocations: 0.7181 MB / 0.5589 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.313e-06/0.3473, allocations: 8 kB / 0.5589 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002382/0.3475, allocations: 47.84 kB / 0.5589 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3475, allocations: 4 kB / 0.5589 GB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.3476, allocations: 8 kB / 0.559 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3476, allocations: 4 kB / 0.559 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3476, allocations: 0 / 0.559 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008569/0.3484, allocations: 412.9 kB / 0.5594 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.317e-05/0.3485, allocations: 31.69 kB / 0.5594 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.084e-05/0.3486, allocations: 16 kB / 0.5594 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.3488, allocations: 7.984 kB / 0.5594 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.567e-05/0.3488, allocations: 19.97 kB / 0.5594 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.3489, allocations: 8 kB / 0.5594 GB, free: 2.953 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003604/0.3492, allocations: 227 kB / 0.5596 GB, free: 2.734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3492, allocations: 0 / 0.5596 GB, free: 2.734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006679/0.3499, allocations: 95.77 kB / 0.5597 GB, free: 2.641 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (system.initime,$whenCondition1,city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of discrete states: 2 (city.data.nextTimeEvent,city.data.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.003419/0.3533, allocations: 1.356 MB / 0.5611 GB, free: 1.445 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006924/0.354, allocations: 244.1 kB / 0.5613 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.354, allocations: 0 / 0.5613 GB, free: 1.207 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002987/0.3543, allocations: 115.2 kB / 0.5614 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.355, allocations: 52.41 kB / 0.5615 GB, free: 1.047 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004573/0.3596, allocations: 3.11 MB / 0.5645 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/0.3601, allocations: 0.7952 MB / 0.5653 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002178/0.3603, allocations: 86.89 kB / 0.5654 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.3605, allocations: 107.3 kB / 0.5655 GB, free: 12.77 MB / 414.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3605, allocations: 0 / 0.5655 GB, free: 12.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.3891, allocations: 7.783 MB / 0.5731 GB, free: 5.047 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.1/12.49, allocations: 11.56 kB / 0.5731 GB, free: 5.039 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_CityTest.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.CityTest.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.285949965007603] Failed to read output from testmodel.py, exit status != 0: 12.707902082998771 12.72722421 12.394045948 Calling exit ...