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.001356/0.001356, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001416/0.001416, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.511/1.511, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.195/0.195, allocations: 38.55 MB / 352.5 MB, free: 12.29 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.002038/0.002038, allocations: 67.84 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3499, allocations: 62.47 MB / 0.5419 GB, free: 264 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009352/0.3593, allocations: 6.088 MB / 0.5479 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005162/0.3644, allocations: 2.514 MB / 0.5503 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005944/0.365, allocations: 43.5 kB / 0.5504 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.3663, allocations: 320.9 kB / 0.5507 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.3679, allocations: 0.6031 MB / 0.5513 GB, free: 8.965 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.3687, allocations: 291 kB / 0.5516 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.3703, allocations: 1.209 MB / 0.5527 GB, free: 8.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001035/0.3714, allocations: 0.7729 MB / 0.5535 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008022/0.3722, allocations: 0.49 MB / 0.554 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008769/0.373, allocations: 0.5648 MB / 0.5545 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001242/0.3732, allocations: 87.28 kB / 0.5546 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006911/0.3738, allocations: 357.7 kB / 0.5549 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.3742, allocations: 341.5 kB / 0.5553 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00047/0.3747, allocations: 378.9 kB / 0.5556 GB, free: 6.227 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001674/0.3764, allocations: 1.378 MB / 0.557 GB, free: 4.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.3764, allocations: 0 / 0.557 GB, free: 4.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3764, allocations: 0 / 0.557 GB, free: 4.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.3764, allocations: 0 / 0.557 GB, free: 4.844 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.002268/0.3787, allocations: 1.1 MB / 0.558 GB, free: 3.711 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3787, allocations: 11.98 kB / 0.5581 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001475/0.3788, allocations: 114.7 kB / 0.5582 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006886/0.3795, allocations: 140.3 kB / 0.5583 GB, free: 3.441 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.3807, allocations: 0.638 MB / 0.5589 GB, free: 2.773 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.3809, allocations: 109.4 kB / 0.559 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.381, allocations: 64 kB / 0.5591 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.3825, allocations: 0.9608 MB / 0.56 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.3825, allocations: 7.953 kB / 0.56 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.426e-05/0.3826, allocations: 31.97 kB / 0.5601 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.3827, allocations: 53.3 kB / 0.5601 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.3841, allocations: 0.7857 MB / 0.5609 GB, free: 0.707 MB / 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.004955/0.389, allocations: 3.401 MB / 0.5642 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008222/0.3898, allocations: 426.9 kB / 0.5646 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004337/0.3903, allocations: 223.1 kB / 0.5648 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.828e-05/0.3903, allocations: 7.859 kB / 0.5648 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.3904, allocations: 46.5 kB / 0.5649 GB, free: 12.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.114e-06/0.3904, allocations: 0 / 0.5649 GB, free: 12.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01079/0.4011, allocations: 3.396 MB / 0.5682 GB, free: 8.938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.39e-05/0.4012, allocations: 111.2 kB / 0.5683 GB, free: 8.805 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007765/0.402, allocations: 0.5338 MB / 0.5688 GB, free: 8.266 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.952e-05/0.4021, allocations: 33.7 kB / 0.5689 GB, free: 8.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.4024, allocations: 416.1 kB / 0.5693 GB, free: 7.812 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.4026, allocations: 202.2 kB / 0.5694 GB, free: 7.613 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002141/0.4028, allocations: 134.6 kB / 0.5696 GB, free: 7.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.403, allocations: 370.8 kB / 0.5699 GB, free: 7.105 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004928/0.4035, allocations: 285.8 kB / 0.5702 GB, free: 6.824 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006568/0.4042, allocations: 0.5034 MB / 0.5707 GB, free: 6.215 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.4054, allocations: 0.8519 MB / 0.5715 GB, free: 5.262 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4054, allocations: 0 / 0.5715 GB, free: 5.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003406/0.4088, allocations: 1.311 MB / 0.5728 GB, free: 3.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4089, allocations: 8 kB / 0.5728 GB, free: 3.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.4089, allocations: 4 kB / 0.5728 GB, free: 3.918 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.4105, allocations: 479.2 kB / 0.5733 GB, free: 3.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004569/0.411, allocations: 119.9 kB / 0.5734 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.4228, allocations: 8.724 MB / 0.5819 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006328/0.4234, allocations: 35.98 kB / 0.5819 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-05/0.4234, allocations: 35.98 kB / 0.582 GB, free: 10.05 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.0004664/0.4239, allocations: 305.6 kB / 0.5823 GB, free: 9.746 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.4241, allocations: 63.58 kB / 0.5823 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.4272, allocations: 1.154 MB / 0.5835 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.4272, allocations: 8 kB / 0.5835 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.4272, allocations: 4 kB / 0.5835 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.595e-06/0.4272, allocations: 0 / 0.5835 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004623/0.4319, allocations: 1.99 MB / 0.5854 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4319, allocations: 4 kB / 0.5854 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/0.4322, allocations: 64 kB / 0.5855 GB, free: 6.375 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001547/0.4338, allocations: 451 kB / 0.5859 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.4338, allocations: 15.94 kB / 0.5859 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/0.4448, allocations: 8.479 MB / 0.5942 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4448, allocations: 4 kB / 0.5942 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003977/0.4487, allocations: 1.7 MB / 0.5959 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.4493, allocations: 119.5 kB / 0.596 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.4494, allocations: 19.92 kB / 0.596 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000669/0.4501, allocations: 19.98 kB / 0.596 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/0.4503, allocations: 56.39 kB / 0.5961 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-05/0.4504, allocations: 16.06 kB / 0.5961 GB, free: 11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004957/0.4509, allocations: 382.8 kB / 0.5964 GB, free: 10.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4509, allocations: 0 / 0.5964 GB, free: 10.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001233/0.4521, allocations: 251.9 kB / 0.5967 GB, free: 10.38 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.006789/0.4589, allocations: 2.281 MB / 0.5989 GB, free: 8.047 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004067/0.463, allocations: 1.325 MB / 0.6002 GB, free: 6.664 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.463, allocations: 0 / 0.6002 GB, free: 6.664 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002876/0.4658, allocations: 0.9673 MB / 0.6012 GB, free: 5.648 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.4675, allocations: 177.6 kB / 0.6013 GB, free: 5.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01847/0.486, allocations: 7.394 MB / 0.6085 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006051/0.4866, allocations: 464.9 kB / 0.609 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004232/0.487, allocations: 105.7 kB / 0.6091 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.4874, allocations: 267.3 kB / 0.6093 GB, free: 12.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4874, allocations: 0 / 0.6093 GB, free: 12.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0717/0.5591, allocations: 23 MB / 0.6318 GB, free: 6.191 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/14.5, allocations: 3.938 kB / 0.6318 GB, free: 6.188 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.592145690927282] Failed to read output from testmodel.py, exit status != 0: 14.637175526004285 14.667096696 14.285936174 Calling exit ...