Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.001909/0.001909, 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.002552/0.002552, allocations: 214.7 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.561/1.561, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.234/0.234, allocations: 38.53 MB / 352.5 MB, free: 12.52 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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.002549/0.002549, allocations: 67.89 kB / 492.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3648/0.3674, allocations: 62.46 MB / 0.542 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007313/0.3747, allocations: 4.977 MB / 0.5469 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.3775, allocations: 1.519 MB / 0.5483 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003884/0.3779, allocations: 22.28 kB / 0.5484 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004594/0.3784, allocations: 111.9 kB / 0.5485 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009011/0.3793, allocations: 271.1 kB / 0.5487 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004107/0.3797, allocations: 139.8 kB / 0.5489 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009933/0.3807, allocations: 0.5847 MB / 0.5494 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004568/0.3812, allocations: 306.1 kB / 0.5497 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004584/0.3816, allocations: 247.1 kB / 0.55 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004499/0.3821, allocations: 246.7 kB / 0.5502 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.367e-05/0.3821, allocations: 39.09 kB / 0.5502 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.755e-05/0.3822, allocations: 40.12 kB / 0.5503 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.3823, allocations: 121.6 kB / 0.5504 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.3826, allocations: 225.7 kB / 0.5506 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006648/0.3833, allocations: 0.5111 MB / 0.5511 GB, free: 9.438 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.3833, allocations: 0 / 0.5511 GB, free: 9.438 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3833, allocations: 1.5 kB / 0.5511 GB, free: 9.438 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.3833, allocations: 0 / 0.5511 GB, free: 9.438 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001308/0.3846, allocations: 0.6376 MB / 0.5517 GB, free: 8.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.3846, allocations: 21.42 kB / 0.5517 GB, free: 8.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001002/0.3847, allocations: 70.97 kB / 0.5518 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.669e-05/0.3848, allocations: 45.94 kB / 0.5519 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006578/0.3855, allocations: 359.7 kB / 0.5522 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.3856, allocations: 88.52 kB / 0.5523 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.768e-05/0.3857, allocations: 35.59 kB / 0.5523 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007459/0.3864, allocations: 432.3 kB / 0.5527 GB, free: 8.121 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.3864, allocations: 1.062 kB / 0.5527 GB, free: 8.121 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.443e-05/0.3865, allocations: 16.22 kB / 0.5528 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.3865, allocations: 9.031 kB / 0.5528 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005276/0.387, allocations: 278.5 kB / 0.553 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.3893, allocations: 1.769 MB / 0.5548 GB, free: 6.371 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003604/0.3897, allocations: 177.1 kB / 0.5549 GB, free: 6.234 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.3898, allocations: 66.73 kB / 0.555 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.3899, allocations: 2.312 kB / 0.555 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.077e-05/0.3899, allocations: 44.78 kB / 0.555 GB, free: 6.137 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.432e-06/0.3899, allocations: 0 / 0.555 GB, free: 6.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001402/0.3913, allocations: 0.6476 MB / 0.5557 GB, free: 5.672 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.3914, allocations: 106.2 kB / 0.5558 GB, free: 5.547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.3917, allocations: 309.3 kB / 0.5561 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.3918, allocations: 34.83 kB / 0.5561 GB, free: 5.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.392, allocations: 251.1 kB / 0.5563 GB, free: 5.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.967e-05/0.392, allocations: 76.08 kB / 0.5564 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.3921, allocations: 65.73 kB / 0.5565 GB, free: 4.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3923, allocations: 342 kB / 0.5568 GB, free: 4.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.3925, allocations: 71.03 kB / 0.5569 GB, free: 4.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002711/0.3928, allocations: 204.4 kB / 0.5571 GB, free: 4.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.3932, allocations: 294.7 kB / 0.5573 GB, free: 4.137 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3932, allocations: 1.312 kB / 0.5573 GB, free: 4.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006297/0.3938, allocations: 331.6 kB / 0.5577 GB, free: 3.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.3939, allocations: 6.719 kB / 0.5577 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3939, allocations: 4.469 kB / 0.5577 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.264e-05/0.3939, allocations: 7.125 kB / 0.5577 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.3942, allocations: 79.94 kB / 0.5577 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.643e-05/0.3942, allocations: 11.98 kB / 0.5578 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001937/0.3944, allocations: 8 kB / 0.5578 GB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.755e-05/0.3945, allocations: 20.25 kB / 0.5578 GB, free: 3.852 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * 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.0002202/0.3947, allocations: 185.6 kB / 0.558 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.787e-05/0.3948, allocations: 35.75 kB / 0.558 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004139/0.3952, allocations: 192.6 kB / 0.5582 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.3952, allocations: 0 / 0.5582 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3952, allocations: 4 kB / 0.5582 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3952, allocations: 0 / 0.5582 GB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009961/0.3962, allocations: 0.5987 MB / 0.5588 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.3962, allocations: 0 / 0.5588 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002354/0.3964, allocations: 39.92 kB / 0.5588 GB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.3964, allocations: 7.984 kB / 0.5588 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.689e-05/0.3964, allocations: 7.938 kB / 0.5588 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.3964, allocations: 4 kB / 0.5588 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3964, allocations: 0 / 0.5588 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000612/0.3971, allocations: 456.1 kB / 0.5593 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.439e-05/0.3971, allocations: 27.81 kB / 0.5593 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.429e-05/0.3972, allocations: 8 kB / 0.5593 GB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.3974, allocations: 8.031 kB / 0.5593 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.3974, allocations: 15.98 kB / 0.5593 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.74e-05/0.3974, allocations: 4 kB / 0.5593 GB, free: 2.184 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002869/0.3977, allocations: 227 kB / 0.5595 GB, free: 1.961 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3977, allocations: 0 / 0.5595 GB, free: 1.961 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004449/0.3982, allocations: 68 kB / 0.5596 GB, free: 1.895 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * 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.001017/0.3992, allocations: 0.9787 MB / 0.5606 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004787/0.3997, allocations: 191.3 kB / 0.5607 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3997, allocations: 0 / 0.5607 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.3998, allocations: 75.84 kB / 0.5608 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.4005, allocations: 109.7 kB / 0.5609 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0048/0.4053, allocations: 3.426 MB / 0.5643 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004681/0.4058, allocations: 0.8185 MB / 0.5651 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.406, allocations: 43.28 kB / 0.5651 GB, free: 12.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001785/0.4062, allocations: 123.4 kB / 0.5652 GB, free: 11.89 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4062, allocations: 4 kB / 0.5652 GB, free: 11.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03795/0.4441, allocations: 7.375 MB / 0.5724 GB, free: 4.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.9, allocations: 14.84 kB / 0.5724 GB, free: 4.656 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.980753838994133] Failed to read output from testmodel.py, exit status != 0: 12.011727504999726 12.031145535 11.643310902 Calling exit ...