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.001357/0.001357, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001444/0.001444, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.1882/0.1882, allocations: 38.53 MB / 353.2 MB, free: 12.57 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDCcharSpeed",fmuType="cs",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.002546/0.002546, allocations: 68.14 kB / 493.3 MB, free: 4.914 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3244, allocations: 62.47 MB / 0.5428 GB, free: 472 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009297/0.3337, allocations: 6.54 MB / 0.5492 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004673/0.3384, allocations: 2.73 MB / 0.5518 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004891/0.3389, allocations: 43.06 kB / 0.5519 GB, free: 9.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.34, allocations: 341.5 kB / 0.5522 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001763/0.3418, allocations: 0.602 MB / 0.5528 GB, free: 8.422 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008563/0.3426, allocations: 297.5 kB / 0.5531 GB, free: 8.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001944/0.3446, allocations: 1.198 MB / 0.5542 GB, free: 7.496 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.3457, allocations: 0.7724 MB / 0.555 GB, free: 6.949 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008236/0.3465, allocations: 0.4939 MB / 0.5555 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009561/0.3474, allocations: 0.5702 MB / 0.556 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.3476, allocations: 85.78 kB / 0.5561 GB, free: 6.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007776/0.3484, allocations: 380.6 kB / 0.5565 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003777/0.3487, allocations: 345.9 kB / 0.5568 GB, free: 5.906 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005065/0.3492, allocations: 469.6 kB / 0.5572 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001692/0.3509, allocations: 1.375 MB / 0.5586 GB, free: 4.301 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3509, allocations: 0 / 0.5586 GB, free: 4.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3509, allocations: 0 / 0.5586 GB, free: 4.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.431e-05/0.351, allocations: 4 kB / 0.5586 GB, free: 4.297 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.002241/0.3532, allocations: 1.09 MB / 0.5597 GB, free: 3.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.3532, allocations: 11.98 kB / 0.5597 GB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.712e-05/0.3533, allocations: 18.19 kB / 0.5597 GB, free: 3.145 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001663/0.3534, allocations: 126.7 kB / 0.5598 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007318/0.3542, allocations: 140.3 kB / 0.5599 GB, free: 2.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.3554, allocations: 0.6301 MB / 0.5606 GB, free: 2.219 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.3556, allocations: 113.4 kB / 0.5607 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001239/0.3557, allocations: 64 kB / 0.5607 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.3573, allocations: 0.9569 MB / 0.5617 GB, free: 1.031 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.991e-05/0.3573, allocations: 3.953 kB / 0.5617 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.639e-05/0.3574, allocations: 28 kB / 0.5617 GB, free: 1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001054/0.3575, allocations: 57.28 kB / 0.5617 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3589, allocations: 0.7935 MB / 0.5625 GB, free: 152 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.005283/0.3642, allocations: 3.75 MB / 0.5662 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008095/0.365, allocations: 426.9 kB / 0.5666 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000451/0.3654, allocations: 219.1 kB / 0.5668 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.3655, allocations: 11.86 kB / 0.5668 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.3655, allocations: 42.5 kB / 0.5668 GB, free: 11.46 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.234e-06/0.3655, allocations: 0 / 0.5668 GB, free: 11.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01082/0.3763, allocations: 3.399 MB / 0.5702 GB, free: 7.992 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.603e-05/0.3764, allocations: 111.2 kB / 0.5703 GB, free: 7.859 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007214/0.3771, allocations: 0.5262 MB / 0.5708 GB, free: 7.324 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.308e-05/0.3772, allocations: 29.7 kB / 0.5708 GB, free: 7.289 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003279/0.3775, allocations: 412.1 kB / 0.5712 GB, free: 6.883 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.3777, allocations: 202.3 kB / 0.5714 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.3779, allocations: 138.5 kB / 0.5715 GB, free: 6.543 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.3781, allocations: 370.8 kB / 0.5719 GB, free: 6.172 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.3786, allocations: 285.8 kB / 0.5722 GB, free: 5.891 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007017/0.3793, allocations: 0.4995 MB / 0.5726 GB, free: 5.285 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001354/0.3807, allocations: 0.8559 MB / 0.5735 GB, free: 4.328 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3807, allocations: 4 kB / 0.5735 GB, free: 4.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003654/0.3843, allocations: 1.299 MB / 0.5748 GB, free: 3.004 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.3844, allocations: 12 kB / 0.5748 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/0.3844, allocations: 8 kB / 0.5748 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001819/0.3862, allocations: 466.8 kB / 0.5752 GB, free: 2.516 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004622/0.3867, allocations: 115.8 kB / 0.5753 GB, free: 2.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/0.3986, allocations: 8.817 MB / 0.5839 GB, free: 9.113 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006651/0.3992, allocations: 32.05 kB / 0.584 GB, free: 9.082 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.3993, allocations: 35.98 kB / 0.584 GB, free: 9.047 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.0004849/0.3998, allocations: 305.6 kB / 0.5843 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.3999, allocations: 59.62 kB / 0.5844 GB, free: 8.68 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003213/0.4031, allocations: 1.162 MB / 0.5855 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.4031, allocations: 7.984 kB / 0.5855 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.4032, allocations: 8 kB / 0.5855 GB, free: 7.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.4032, allocations: 3.938 kB / 0.5855 GB, free: 7.477 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004714/0.4079, allocations: 2.08 MB / 0.5875 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.4079, allocations: 0 / 0.5875 GB, free: 5.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003608/0.4082, allocations: 59.89 kB / 0.5876 GB, free: 5.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.4098, allocations: 455.1 kB / 0.588 GB, free: 4.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.244e-05/0.4099, allocations: 15.94 kB / 0.588 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.4209, allocations: 8.548 MB / 0.5964 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4209, allocations: 0 / 0.5964 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003914/0.4248, allocations: 1.696 MB / 0.598 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.4252, allocations: 131.6 kB / 0.5982 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.682e-05/0.4253, allocations: 19.94 kB / 0.5982 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003933/0.4257, allocations: 15.98 kB / 0.5982 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.4259, allocations: 56.39 kB / 0.5983 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-05/0.4259, allocations: 16 kB / 0.5983 GB, free: 9.816 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005172/0.4264, allocations: 374.8 kB / 0.5986 GB, free: 9.453 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4264, allocations: 0 / 0.5986 GB, free: 9.453 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001047/0.4275, allocations: 259.9 kB / 0.5989 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.004257/0.4317, allocations: 2.271 MB / 0.6011 GB, free: 6.875 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002686/0.4344, allocations: 1.325 MB / 0.6024 GB, free: 5.492 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4344, allocations: 0 / 0.6024 GB, free: 5.492 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001811/0.4362, allocations: 0.9587 MB / 0.6033 GB, free: 4.484 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.4374, allocations: 185.2 kB / 0.6035 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0137/0.4511, allocations: 7.407 MB / 0.6107 GB, free: 12.57 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008648/0.452, allocations: 1.052 MB / 0.6118 GB, free: 11.49 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003973/0.4523, allocations: 113.7 kB / 0.6119 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003821/0.4527, allocations: 267.3 kB / 0.6121 GB, free: 11.11 MB / 462.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4527, allocations: 0 / 0.6121 GB, free: 11.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06542/0.5182, allocations: 22.3 MB / 0.6339 GB, free: 5.031 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/14.99, allocations: 11.56 kB / 0.6339 GB, free: 5.023 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.897936460969504] Failed to read output from testmodel.py, exit status != 0: 15.177863489021547 15.193848411 14.8395984 Calling exit ...