Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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.001673/0.001673, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002151/0.002151, allocations: 214.9 kB / 23.74 MB, free: 4.656 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.496/1.496, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.1887/0.1887, allocations: 38.53 MB / 352.5 MB, free: 12.64 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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest",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.002335/0.002335, allocations: 71.91 kB / 492.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3135, allocations: 62.47 MB / 0.542 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005318/0.3189, allocations: 3.445 MB / 0.5454 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.3211, allocations: 1.292 MB / 0.5466 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.3212, allocations: 9.062 kB / 0.5466 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006555/0.3219, allocations: 162.6 kB / 0.5468 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004306/0.3223, allocations: 179.4 kB / 0.547 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.3226, allocations: 130 kB / 0.5471 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003875/0.323, allocations: 289.6 kB / 0.5474 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.3233, allocations: 114.6 kB / 0.5475 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.3236, allocations: 130 kB / 0.5476 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002315/0.3238, allocations: 117.6 kB / 0.5477 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.794e-05/0.3238, allocations: 13.78 kB / 0.5477 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004123/0.3242, allocations: 238.9 kB / 0.5479 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.88e-05/0.3243, allocations: 66.53 kB / 0.548 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.3244, allocations: 92.98 kB / 0.5481 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005762/0.325, allocations: 285.5 kB / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.325, allocations: 1.25 kB / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.325, allocations: 0 / 0.5484 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.956e-05/0.3251, allocations: 0 / 0.5484 GB, free: 11.55 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008744/0.3259, allocations: 440.6 kB / 0.5488 GB, free: 11.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.326, allocations: 18.11 kB / 0.5488 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.729e-05/0.326, allocations: 48.52 kB / 0.5489 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008362/0.3269, allocations: 81.33 kB / 0.5489 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003721/0.3273, allocations: 197.4 kB / 0.5491 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.3273, allocations: 10.86 kB / 0.5491 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.306e-05/0.3273, allocations: 20.27 kB / 0.5492 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.3278, allocations: 274.1 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.3278, allocations: 1.188 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.3278, allocations: 5.25 kB / 0.5494 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.041e-05/0.3279, allocations: 14.33 kB / 0.5494 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003772/0.3282, allocations: 225.4 kB / 0.5496 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.3299, allocations: 1.153 MB / 0.5508 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.3301, allocations: 127.6 kB / 0.5509 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.703e-05/0.3302, allocations: 47.98 kB / 0.5509 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.3302, allocations: 1.438 kB / 0.5509 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.314e-05/0.3302, allocations: 44 kB / 0.551 GB, free: 9.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.3302, allocations: 0 / 0.551 GB, free: 9.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003535/0.3306, allocations: 167.4 kB / 0.5511 GB, free: 9.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.3307, allocations: 78.64 kB / 0.5512 GB, free: 9.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000244/0.3309, allocations: 209.1 kB / 0.5514 GB, free: 8.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.3309, allocations: 26.89 kB / 0.5514 GB, free: 8.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.3311, allocations: 162.3 kB / 0.5516 GB, free: 8.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.112e-05/0.3311, allocations: 45.02 kB / 0.5516 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.594e-05/0.3312, allocations: 44.08 kB / 0.5517 GB, free: 8.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.3314, allocations: 331.3 kB / 0.552 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.953e-05/0.3315, allocations: 43.7 kB / 0.552 GB, free: 8.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.3317, allocations: 121.7 kB / 0.5522 GB, free: 8.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002779/0.3319, allocations: 177.2 kB / 0.5523 GB, free: 8.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3319, allocations: 1.062 kB / 0.5523 GB, free: 8.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003911/0.3323, allocations: 211 kB / 0.5525 GB, free: 7.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.3324, allocations: 6.812 kB / 0.5525 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3324, allocations: 2.406 kB / 0.5525 GB, free: 7.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.958e-05/0.3324, allocations: 7.875 kB / 0.5525 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.3327, allocations: 54.38 kB / 0.5526 GB, free: 7.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.334, allocations: 1.314 MB / 0.5539 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.3341, allocations: 14.36 kB / 0.5539 GB, free: 6.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.3342, allocations: 12.03 kB / 0.5539 GB, free: 6.594 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001823/0.3344, allocations: 146.8 kB / 0.554 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.208e-05/0.3344, allocations: 20.89 kB / 0.5541 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002555/0.3347, allocations: 142.8 kB / 0.5542 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3347, allocations: 5.516 kB / 0.5542 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.3347, allocations: 4.969 kB / 0.5542 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3347, allocations: 0 / 0.5542 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007208/0.3354, allocations: 478.8 kB / 0.5547 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3354, allocations: 1.125 kB / 0.5547 GB, free: 5.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001744/0.3356, allocations: 27.42 kB / 0.5547 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3356, allocations: 2.562 kB / 0.5547 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.3356, allocations: 9.312 kB / 0.5547 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001052/0.3366, allocations: 1.323 MB / 0.556 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3366, allocations: 1.219 kB / 0.556 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000348/0.337, allocations: 313.7 kB / 0.5563 GB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.337, allocations: 22.45 kB / 0.5563 GB, free: 4.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.3371, allocations: 6.188 kB / 0.5563 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.442e-05/0.3372, allocations: 1.125 kB / 0.5563 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.636e-05/0.3372, allocations: 8.453 kB / 0.5563 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.3372, allocations: 7.625 kB / 0.5563 GB, free: 4.266 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001446/0.3373, allocations: 152.3 kB / 0.5565 GB, free: 4.152 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3373, allocations: 0 / 0.5565 GB, free: 4.152 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.3377, allocations: 47.05 kB / 0.5565 GB, free: 4.145 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006372/0.3383, allocations: 0.8379 MB / 0.5574 GB, free: 3.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003242/0.3387, allocations: 121.2 kB / 0.5575 GB, free: 3.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.3387, allocations: 1.031 kB / 0.5575 GB, free: 3.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001552/0.3388, allocations: 55.94 kB / 0.5575 GB, free: 3.297 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.3392, allocations: 37.27 kB / 0.5576 GB, free: 3.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.3425, allocations: 2.368 MB / 0.5599 GB, free: 1.277 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.3429, allocations: 0.7424 MB / 0.5606 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001082/0.343, allocations: 29.36 kB / 0.5606 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3431, allocations: 52.95 kB / 0.5607 GB, free: 500 kB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3431, allocations: 0 / 0.5607 GB, free: 500 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.3765, allocations: 3.981 MB / 0.5646 GB, free: 12.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.23, allocations: 6.234 kB / 0.5646 GB, free: 12.63 MB / 414.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.0255731260404] Failed to read output from testmodel.py, exit status != 0: 13.342280189041048 13.359311548 13.030849119 Calling exit ...