Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.001265/0.001265, 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.001493/0.001493, allocations: 212 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.537/1.537, allocations: 230.6 MB / 257.5 MB, free: 8 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.1872/0.1872, allocations: 38.53 MB / 352.5 MB, free: 12.54 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.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",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.00205/0.00205, allocations: 67.89 kB / 492.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.345, allocations: 62.47 MB / 0.542 GB, free: 432 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009333/0.3543, allocations: 6.531 MB / 0.5484 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005122/0.3595, allocations: 2.735 MB / 0.5511 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005477/0.36, allocations: 38.56 kB / 0.5511 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001217/0.3612, allocations: 345.1 kB / 0.5514 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.3629, allocations: 0.6072 MB / 0.552 GB, free: 8.387 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007265/0.3636, allocations: 290.2 kB / 0.5523 GB, free: 8.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001712/0.3653, allocations: 1.205 MB / 0.5535 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00102/0.3663, allocations: 0.7768 MB / 0.5542 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009812/0.3673, allocations: 0.4907 MB / 0.5547 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.3684, allocations: 0.5695 MB / 0.5553 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001722/0.3686, allocations: 85.44 kB / 0.5553 GB, free: 6.273 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001034/0.3696, allocations: 380.1 kB / 0.5557 GB, free: 6.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005176/0.3702, allocations: 346.7 kB / 0.556 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006727/0.3708, allocations: 457.4 kB / 0.5565 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002403/0.3732, allocations: 1.383 MB / 0.5578 GB, free: 4.277 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.3732, allocations: 4 kB / 0.5578 GB, free: 4.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3732, allocations: 0 / 0.5578 GB, free: 4.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.848e-05/0.3733, allocations: 0 / 0.5578 GB, free: 4.273 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002447/0.3757, allocations: 1.086 MB / 0.5589 GB, free: 3.156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.3758, allocations: 11.98 kB / 0.5589 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.3759, allocations: 122.7 kB / 0.559 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007624/0.3767, allocations: 144.2 kB / 0.5591 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.3781, allocations: 0.6458 MB / 0.5598 GB, free: 2.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.3782, allocations: 101.4 kB / 0.5599 GB, free: 2.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.3784, allocations: 64 kB / 0.5599 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.38, allocations: 0.9569 MB / 0.5609 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.257e-05/0.38, allocations: 11.89 kB / 0.5609 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.376e-05/0.3801, allocations: 24 kB / 0.5609 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.3802, allocations: 61.28 kB / 0.561 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3816, allocations: 0.7858 MB / 0.5617 GB, free: 144 kB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005384/0.387, allocations: 3.754 MB / 0.5654 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008289/0.3878, allocations: 420.1 kB / 0.5658 GB, free: 11.73 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.3882, allocations: 225.9 kB / 0.566 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.587e-05/0.3883, allocations: 15.84 kB / 0.566 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.3883, allocations: 38.56 kB / 0.5661 GB, free: 11.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.404e-06/0.3883, allocations: 0 / 0.5661 GB, free: 11.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01089/0.3992, allocations: 3.4 MB / 0.5694 GB, free: 7.977 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.211e-05/0.3993, allocations: 107.3 kB / 0.5695 GB, free: 7.848 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000707/0.4, allocations: 0.53 MB / 0.57 GB, free: 7.312 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/0.4, allocations: 29.7 kB / 0.57 GB, free: 7.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.4004, allocations: 408.1 kB / 0.5704 GB, free: 6.871 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/0.4006, allocations: 202.3 kB / 0.5706 GB, free: 6.672 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002166/0.4008, allocations: 134.6 kB / 0.5707 GB, free: 6.535 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002025/0.401, allocations: 370.8 kB / 0.5711 GB, free: 6.164 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004969/0.4015, allocations: 281.8 kB / 0.5714 GB, free: 5.887 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006783/0.4022, allocations: 0.5072 MB / 0.5719 GB, free: 5.273 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.4034, allocations: 0.852 MB / 0.5727 GB, free: 4.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.4034, allocations: 4 kB / 0.5727 GB, free: 4.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003494/0.4069, allocations: 1.303 MB / 0.574 GB, free: 2.992 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.4069, allocations: 12.03 kB / 0.574 GB, free: 2.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.407, allocations: 8 kB / 0.574 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001749/0.4087, allocations: 459 kB / 0.5744 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.4092, allocations: 115.8 kB / 0.5745 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01151/0.4207, allocations: 8.813 MB / 0.5831 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.4213, allocations: 39.92 kB / 0.5832 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-05/0.4214, allocations: 32 kB / 0.5832 GB, free: 9.039 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (3,8,88.9%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004995/0.4219, allocations: 309.5 kB / 0.5835 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.422, allocations: 63.58 kB / 0.5836 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003162/0.4252, allocations: 1.147 MB / 0.5847 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.4252, allocations: 4 kB / 0.5847 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.4252, allocations: 8 kB / 0.5847 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.4252, allocations: 3.984 kB / 0.5847 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004729/0.4299, allocations: 2.088 MB / 0.5867 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.33e-05/0.4299, allocations: 3.984 kB / 0.5867 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003284/0.4303, allocations: 59.89 kB / 0.5868 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001496/0.4317, allocations: 450.9 kB / 0.5872 GB, free: 4.816 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.79e-05/0.4318, allocations: 19.92 kB / 0.5873 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/0.4428, allocations: 8.54 MB / 0.5956 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4428, allocations: 0 / 0.5956 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003996/0.4468, allocations: 1.7 MB / 0.5973 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003751/0.4471, allocations: 131.5 kB / 0.5974 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.796e-05/0.4472, allocations: 15.94 kB / 0.5974 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/0.4476, allocations: 23.98 kB / 0.5974 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.4478, allocations: 56.39 kB / 0.5975 GB, free: 9.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-05/0.4479, allocations: 19.98 kB / 0.5975 GB, free: 9.809 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005235/0.4484, allocations: 370.8 kB / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4484, allocations: 0 / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001114/0.4495, allocations: 255.9 kB / 0.5981 GB, free: 9.199 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,8,88.9%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004461/0.454, allocations: 2.283 MB / 0.6003 GB, free: 6.867 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.4567, allocations: 1.325 MB / 0.6016 GB, free: 5.484 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4567, allocations: 0 / 0.6016 GB, free: 5.484 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.4585, allocations: 0.9588 MB / 0.6025 GB, free: 4.477 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.4596, allocations: 181.2 kB / 0.6027 GB, free: 4.305 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/0.4733, allocations: 7.402 MB / 0.6099 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008922/0.4742, allocations: 1.052 MB / 0.611 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004173/0.4747, allocations: 109.7 kB / 0.6111 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.475, allocations: 267.3 kB / 0.6113 GB, free: 11.11 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.475, allocations: 0 / 0.6113 GB, free: 11.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07337/0.5484, allocations: 22.27 MB / 0.6331 GB, free: 5.051 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.77, allocations: 11.03 kB / 0.6331 GB, free: 5.043 MB / 478.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_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_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.722081469997647] Failed to read output from testmodel.py, exit status != 0: 14.89655507200223 14.914120031 14.537590368 Calling exit ...