Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001711/0.001711, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001481/0.001481, allocations: 211.7 kB / 23.73 MB, free: 4.387 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.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1859/0.1859, allocations: 38.56 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 master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_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.002196/0.002196, allocations: 67.91 kB / 492.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3086/0.3108, allocations: 62.47 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008437/0.3193, allocations: 6.089 MB / 0.5479 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005303/0.3246, allocations: 2.506 MB / 0.5503 GB, free: 9.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009568/0.3255, allocations: 42 kB / 0.5504 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001432/0.327, allocations: 330.1 kB / 0.5507 GB, free: 9.406 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001742/0.3287, allocations: 0.6035 MB / 0.5513 GB, free: 8.945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009076/0.3296, allocations: 291.4 kB / 0.5516 GB, free: 8.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001974/0.3316, allocations: 1.198 MB / 0.5527 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.3327, allocations: 0.7677 MB / 0.5535 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008385/0.3336, allocations: 0.498 MB / 0.554 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00083/0.3344, allocations: 0.5267 MB / 0.5545 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.3345, allocations: 86.34 kB / 0.5546 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007487/0.3353, allocations: 354 kB / 0.5549 GB, free: 6.738 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003743/0.3357, allocations: 342 kB / 0.5552 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005404/0.3362, allocations: 369.8 kB / 0.5556 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001839/0.338, allocations: 1.383 MB / 0.5569 GB, free: 4.895 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.338, allocations: 0 / 0.5569 GB, free: 4.895 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.338, allocations: 0 / 0.5569 GB, free: 4.895 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.3381, allocations: 4 kB / 0.5569 GB, free: 4.891 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.002353/0.3404, allocations: 1.092 MB / 0.558 GB, free: 3.766 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.3405, allocations: 11.98 kB / 0.558 GB, free: 3.754 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001556/0.3406, allocations: 126.6 kB / 0.5581 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006798/0.3413, allocations: 140.3 kB / 0.5583 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.3427, allocations: 0.6341 MB / 0.5589 GB, free: 2.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.3428, allocations: 101.4 kB / 0.559 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.3429, allocations: 71.98 kB / 0.559 GB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001656/0.3446, allocations: 0.9608 MB / 0.56 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.3446, allocations: 3.953 kB / 0.56 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.122e-05/0.3447, allocations: 28 kB / 0.56 GB, free: 1.602 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001177/0.3448, allocations: 61.27 kB / 0.5601 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.3462, allocations: 0.7896 MB / 0.5608 GB, free: 0.75 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.005217/0.3514, allocations: 3.401 MB / 0.5642 GB, free: 13.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008176/0.3522, allocations: 416.1 kB / 0.5646 GB, free: 12.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004421/0.3527, allocations: 223.1 kB / 0.5648 GB, free: 12.51 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.3527, allocations: 11.8 kB / 0.5648 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.3528, allocations: 38.56 kB / 0.5648 GB, free: 12.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.394e-06/0.3528, allocations: 0 / 0.5648 GB, free: 12.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01103/0.3638, allocations: 3.407 MB / 0.5682 GB, free: 8.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.3639, allocations: 111.2 kB / 0.5683 GB, free: 8.848 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007724/0.3646, allocations: 0.5378 MB / 0.5688 GB, free: 8.305 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.116e-05/0.3647, allocations: 29.7 kB / 0.5688 GB, free: 8.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003614/0.3651, allocations: 408.1 kB / 0.5692 GB, free: 7.863 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/0.3653, allocations: 214.2 kB / 0.5694 GB, free: 7.652 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002413/0.3655, allocations: 126.6 kB / 0.5695 GB, free: 7.523 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002137/0.3657, allocations: 370.8 kB / 0.5699 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005341/0.3663, allocations: 281.8 kB / 0.5701 GB, free: 6.875 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007229/0.367, allocations: 0.5033 MB / 0.5706 GB, free: 6.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.3683, allocations: 0.852 MB / 0.5715 GB, free: 5.316 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.3684, allocations: 4 kB / 0.5715 GB, free: 5.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003521/0.3719, allocations: 1.314 MB / 0.5728 GB, free: 3.977 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.3719, allocations: 8 kB / 0.5728 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.3719, allocations: 8 kB / 0.5728 GB, free: 3.961 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001843/0.3738, allocations: 463.2 kB / 0.5732 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.3742, allocations: 115.8 kB / 0.5733 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.3862, allocations: 8.732 MB / 0.5819 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006486/0.3868, allocations: 31.98 kB / 0.5819 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.403e-05/0.3869, allocations: 31.98 kB / 0.5819 GB, free: 10.11 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.0005357/0.3875, allocations: 316 kB / 0.5822 GB, free: 9.797 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001813/0.3876, allocations: 63.58 kB / 0.5823 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003261/0.3909, allocations: 1.162 MB / 0.5834 GB, free: 8.559 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.3909, allocations: 11.94 kB / 0.5834 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.3909, allocations: 0 / 0.5834 GB, free: 8.547 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.3909, allocations: 7.938 kB / 0.5834 GB, free: 8.539 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004946/0.3959, allocations: 1.979 MB / 0.5854 GB, free: 6.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3959, allocations: 0 / 0.5854 GB, free: 6.492 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/0.3962, allocations: 63.89 kB / 0.5854 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.3978, allocations: 451.1 kB / 0.5859 GB, free: 5.977 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.002e-05/0.3979, allocations: 15.94 kB / 0.5859 GB, free: 5.961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/0.409, allocations: 8.482 MB / 0.5942 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.387e-06/0.409, allocations: 7.922 kB / 0.5942 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/0.4132, allocations: 1.696 MB / 0.5958 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000422/0.4136, allocations: 123.5 kB / 0.5959 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001473/0.4138, allocations: 19.92 kB / 0.596 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.4142, allocations: 16 kB / 0.596 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.4144, allocations: 60.38 kB / 0.596 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.25e-05/0.4144, allocations: 16 kB / 0.596 GB, free: 11.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005538/0.415, allocations: 370.8 kB / 0.5964 GB, free: 10.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.415, allocations: 0 / 0.5964 GB, free: 10.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001086/0.4161, allocations: 251.9 kB / 0.5966 GB, free: 10.44 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.004408/0.4205, allocations: 2.291 MB / 0.5989 GB, free: 8.094 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.4231, allocations: 1.318 MB / 0.6002 GB, free: 6.719 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4231, allocations: 0 / 0.6002 GB, free: 6.719 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001824/0.4249, allocations: 0.9662 MB / 0.6011 GB, free: 5.703 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.426, allocations: 185.3 kB / 0.6013 GB, free: 5.531 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.4404, allocations: 7.398 MB / 0.6085 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008175/0.4412, allocations: 464.9 kB / 0.6089 GB, free: 13.31 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000436/0.4417, allocations: 105.7 kB / 0.609 GB, free: 13.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004023/0.4421, allocations: 263.3 kB / 0.6093 GB, free: 12.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4421, allocations: 0 / 0.6093 GB, free: 12.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/0.5441, allocations: 22.67 MB / 0.6314 GB, free: 6.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.82/14.37, allocations: 7.875 kB / 0.6314 GB, free: 6.562 MB / 478.1 MB " [Timeout remaining time 645] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.190168185159564] Failed to read output from testmodel.py, exit status != 0: 14.506322955247015 14.534669451 14.191032169 Calling exit ...