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.001341/0.001341, allocations: 107.1 kB / 20.44 MB, free: 1.195 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.002218/0.002218, allocations: 206.7 kB / 23.73 MB, free: 4.398 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.583/1.583, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.1867/0.1867, allocations: 38.55 MB / 352.5 MB, free: 12.3 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.003502/0.003502, allocations: 72.17 kB / 492.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2998, allocations: 62.47 MB / 0.5419 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008166/0.308, allocations: 6.081 MB / 0.5479 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004258/0.3122, allocations: 2.521 MB / 0.5503 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004372/0.3127, allocations: 38.47 kB / 0.5504 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001089/0.3138, allocations: 317.6 kB / 0.5507 GB, free: 9.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.3152, allocations: 0.607 MB / 0.5513 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000661/0.3159, allocations: 295.4 kB / 0.5516 GB, free: 8.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00148/0.3174, allocations: 1.201 MB / 0.5527 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.3184, allocations: 0.7692 MB / 0.5535 GB, free: 7.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000753/0.3191, allocations: 0.4941 MB / 0.554 GB, free: 7.379 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000814/0.3199, allocations: 0.5293 MB / 0.5545 GB, free: 7.062 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.3201, allocations: 86.59 kB / 0.5546 GB, free: 7.062 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000671/0.3208, allocations: 353.8 kB / 0.5549 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003594/0.3211, allocations: 342.4 kB / 0.5552 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004329/0.3215, allocations: 371.5 kB / 0.5556 GB, free: 6.402 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001631/0.3232, allocations: 1.386 MB / 0.5569 GB, free: 5.012 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3232, allocations: 0 / 0.5569 GB, free: 5.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3232, allocations: 0 / 0.5569 GB, free: 5.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.3232, allocations: 4 kB / 0.5569 GB, free: 5.008 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.002253/0.3254, allocations: 1.088 MB / 0.558 GB, free: 3.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3255, allocations: 11.98 kB / 0.558 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.3257, allocations: 122.6 kB / 0.5581 GB, free: 3.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007357/0.3264, allocations: 144.3 kB / 0.5583 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.3278, allocations: 0.6302 MB / 0.5589 GB, free: 2.945 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001696/0.328, allocations: 101.4 kB / 0.559 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001374/0.3281, allocations: 71.92 kB / 0.559 GB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.3298, allocations: 0.9686 MB / 0.56 GB, free: 1.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.925e-05/0.3299, allocations: 3.953 kB / 0.56 GB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.49e-05/0.3299, allocations: 28 kB / 0.56 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/0.3301, allocations: 57.28 kB / 0.5601 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/0.3315, allocations: 0.7858 MB / 0.5608 GB, free: 0.875 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.005603/0.3371, allocations: 3.401 MB / 0.5642 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008976/0.338, allocations: 419 kB / 0.5646 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.3385, allocations: 219.1 kB / 0.5648 GB, free: 12.64 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.3385, allocations: 7.859 kB / 0.5648 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.3386, allocations: 38.56 kB / 0.5648 GB, free: 12.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.535e-06/0.3386, allocations: 0 / 0.5648 GB, free: 12.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01112/0.3497, allocations: 3.411 MB / 0.5682 GB, free: 9.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.323e-05/0.3498, allocations: 119.2 kB / 0.5683 GB, free: 8.969 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007543/0.3505, allocations: 0.526 MB / 0.5688 GB, free: 8.438 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.046e-05/0.3506, allocations: 37.73 kB / 0.5688 GB, free: 8.395 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003289/0.3509, allocations: 412.1 kB / 0.5692 GB, free: 7.984 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.3511, allocations: 210.2 kB / 0.5694 GB, free: 7.777 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002055/0.3513, allocations: 126.6 kB / 0.5695 GB, free: 7.648 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.3515, allocations: 370.8 kB / 0.5699 GB, free: 7.277 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005097/0.352, allocations: 281.8 kB / 0.5702 GB, free: 7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000698/0.3527, allocations: 0.5033 MB / 0.5706 GB, free: 6.395 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.354, allocations: 0.8481 MB / 0.5715 GB, free: 5.445 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-06/0.354, allocations: 8 kB / 0.5715 GB, free: 5.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003513/0.3576, allocations: 1.314 MB / 0.5728 GB, free: 4.102 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3576, allocations: 8 kB / 0.5728 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.3576, allocations: 8 kB / 0.5728 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001693/0.3593, allocations: 459.2 kB / 0.5732 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.3598, allocations: 119.8 kB / 0.5733 GB, free: 3.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01177/0.3715, allocations: 8.727 MB / 0.5819 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.3721, allocations: 31.94 kB / 0.5819 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/0.3722, allocations: 31.98 kB / 0.5819 GB, free: 10.25 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.0004676/0.3726, allocations: 313.6 kB / 0.5822 GB, free: 9.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3728, allocations: 71.5 kB / 0.5823 GB, free: 9.859 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/0.376, allocations: 1.162 MB / 0.5834 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.376, allocations: 8 kB / 0.5834 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.376, allocations: 0 / 0.5834 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.376, allocations: 7.984 kB / 0.5834 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004787/0.3808, allocations: 1.979 MB / 0.5854 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.3808, allocations: 0 / 0.5854 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.3812, allocations: 67.91 kB / 0.5854 GB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.3828, allocations: 447.3 kB / 0.5859 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.066e-05/0.3828, allocations: 19.88 kB / 0.5859 GB, free: 6.082 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.394, allocations: 8.482 MB / 0.5942 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.394, allocations: 4 kB / 0.5942 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003988/0.3979, allocations: 1.696 MB / 0.5958 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003748/0.3983, allocations: 127.5 kB / 0.5959 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.129e-05/0.3984, allocations: 15.94 kB / 0.596 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003981/0.3988, allocations: 19.98 kB / 0.596 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.399, allocations: 56.39 kB / 0.596 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.399, allocations: 16 kB / 0.596 GB, free: 11.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005028/0.3995, allocations: 370.8 kB / 0.5964 GB, free: 10.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3995, allocations: 0 / 0.5964 GB, free: 10.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000985/0.4005, allocations: 255.9 kB / 0.5966 GB, free: 10.56 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.004348/0.4049, allocations: 2.282 MB / 0.5989 GB, free: 8.223 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002694/0.4076, allocations: 1.326 MB / 0.6002 GB, free: 6.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.4076, allocations: 0 / 0.6002 GB, free: 6.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/0.4094, allocations: 0.9623 MB / 0.6011 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001071/0.4105, allocations: 185.1 kB / 0.6013 GB, free: 5.656 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.4244, allocations: 7.398 MB / 0.6085 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006054/0.425, allocations: 456.9 kB / 0.6089 GB, free: 13.44 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003937/0.4254, allocations: 109.7 kB / 0.609 GB, free: 13.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.4257, allocations: 263.3 kB / 0.6093 GB, free: 13.07 MB / 462.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4257, allocations: 0 / 0.6093 GB, free: 13.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/0.5263, allocations: 22.68 MB / 0.6314 GB, free: 6.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.18, allocations: 2.812 kB / 0.6314 GB, free: 6.68 MB / 478.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.077375767752528] Failed to read output from testmodel.py, exit status != 0: 14.312946651130915 14.328772324000001 14.001645773 Calling exit ...