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.001575/0.001575, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002203/0.002203, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.581/1.581, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.1905/0.1905, allocations: 38.52 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 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.002287/0.002287, allocations: 67.89 kB / 492.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.332, allocations: 62.48 MB / 0.542 GB, free: 456 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009001/0.341, allocations: 6.519 MB / 0.5484 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004805/0.3458, allocations: 2.743 MB / 0.5511 GB, free: 9.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004745/0.3462, allocations: 39.28 kB / 0.5511 GB, free: 9.141 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.3474, allocations: 336.8 kB / 0.5514 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001491/0.3489, allocations: 0.6067 MB / 0.552 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007098/0.3496, allocations: 297.7 kB / 0.5523 GB, free: 8.176 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001667/0.3513, allocations: 1.203 MB / 0.5535 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001104/0.3524, allocations: 0.7719 MB / 0.5542 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008059/0.3532, allocations: 0.4983 MB / 0.5547 GB, free: 6.652 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008698/0.354, allocations: 0.5652 MB / 0.5553 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.3542, allocations: 86.75 kB / 0.5553 GB, free: 6.301 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006965/0.3549, allocations: 379.9 kB / 0.5557 GB, free: 6.137 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000354/0.3552, allocations: 345.9 kB / 0.556 GB, free: 5.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004785/0.3557, allocations: 458.8 kB / 0.5565 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001591/0.3573, allocations: 1.381 MB / 0.5578 GB, free: 4.281 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3573, allocations: 3.984 kB / 0.5578 GB, free: 4.277 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3573, allocations: 0 / 0.5578 GB, free: 4.277 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.784e-05/0.3573, allocations: 0 / 0.5578 GB, free: 4.277 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.002224/0.3595, allocations: 1.098 MB / 0.5589 GB, free: 3.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.3596, allocations: 11.98 kB / 0.5589 GB, free: 3.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001523/0.3597, allocations: 114.7 kB / 0.559 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006863/0.3604, allocations: 148.3 kB / 0.5592 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001266/0.3617, allocations: 0.6302 MB / 0.5598 GB, free: 2.211 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3618, allocations: 101.4 kB / 0.5599 GB, free: 2.102 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.3619, allocations: 75.98 kB / 0.5599 GB, free: 2.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.3635, allocations: 0.9569 MB / 0.5609 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.3635, allocations: 11.94 kB / 0.5609 GB, free: 1.012 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-05/0.3636, allocations: 24 kB / 0.5609 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/0.3637, allocations: 53.3 kB / 0.561 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3651, allocations: 0.7935 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.005533/0.3706, allocations: 3.746 MB / 0.5654 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008296/0.3714, allocations: 420.1 kB / 0.5658 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004376/0.3719, allocations: 223.1 kB / 0.566 GB, free: 11.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.741e-05/0.3719, allocations: 19.83 kB / 0.566 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.371e-05/0.372, allocations: 38.56 kB / 0.5661 GB, free: 11.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 2.265e-06/0.372, allocations: 0 / 0.5661 GB, free: 11.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01113/0.3831, allocations: 3.403 MB / 0.5694 GB, free: 7.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.3832, allocations: 107.2 kB / 0.5695 GB, free: 7.852 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008342/0.384, allocations: 0.5261 MB / 0.57 GB, free: 7.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.399e-05/0.3841, allocations: 37.73 kB / 0.57 GB, free: 7.277 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003647/0.3845, allocations: 404.1 kB / 0.5704 GB, free: 6.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.3847, allocations: 198.3 kB / 0.5706 GB, free: 6.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.3849, allocations: 138.6 kB / 0.5707 GB, free: 6.539 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.3851, allocations: 370.8 kB / 0.5711 GB, free: 6.168 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004997/0.3856, allocations: 277.8 kB / 0.5714 GB, free: 5.895 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000714/0.3863, allocations: 0.511 MB / 0.5719 GB, free: 5.277 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.3876, allocations: 0.852 MB / 0.5727 GB, free: 4.324 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3876, allocations: 4 kB / 0.5727 GB, free: 4.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003526/0.3912, allocations: 1.307 MB / 0.574 GB, free: 2.992 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.3912, allocations: 8 kB / 0.574 GB, free: 2.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.663e-05/0.3912, allocations: 8 kB / 0.574 GB, free: 2.977 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001792/0.393, allocations: 471.2 kB / 0.5744 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000465/0.3935, allocations: 107.8 kB / 0.5745 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01238/0.4058, allocations: 8.817 MB / 0.5832 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006992/0.4065, allocations: 39.86 kB / 0.5832 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.4067, allocations: 28 kB / 0.5832 GB, free: 9.043 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.0006857/0.4073, allocations: 309.6 kB / 0.5835 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002372/0.4076, allocations: 59.62 kB / 0.5836 GB, free: 8.672 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.411, allocations: 1.154 MB / 0.5847 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.411, allocations: 4 kB / 0.5847 GB, free: 7.496 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.4111, allocations: 4 kB / 0.5847 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.4111, allocations: 7.984 kB / 0.5847 GB, free: 7.484 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005061/0.4161, allocations: 2.084 MB / 0.5867 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.4161, allocations: 0 / 0.5867 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003433/0.4165, allocations: 55.91 kB / 0.5868 GB, free: 5.277 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001563/0.418, allocations: 451.1 kB / 0.5872 GB, free: 4.824 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.4181, allocations: 19.94 kB / 0.5872 GB, free: 4.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01137/0.4295, allocations: 8.552 MB / 0.5956 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4295, allocations: 0 / 0.5956 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.4335, allocations: 1.707 MB / 0.5973 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004104/0.4339, allocations: 123.5 kB / 0.5974 GB, free: 9.922 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001244/0.434, allocations: 15.94 kB / 0.5974 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004365/0.4344, allocations: 24.05 kB / 0.5974 GB, free: 9.883 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.4346, allocations: 56.39 kB / 0.5975 GB, free: 9.828 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.4347, allocations: 19.98 kB / 0.5975 GB, free: 9.809 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005414/0.4352, allocations: 370.8 kB / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4352, allocations: 0 / 0.5978 GB, free: 9.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001025/0.4362, allocations: 251.9 kB / 0.5981 GB, free: 9.203 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.004342/0.4406, allocations: 2.291 MB / 0.6003 GB, free: 6.859 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002653/0.4432, allocations: 1.314 MB / 0.6016 GB, free: 5.488 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.4432, allocations: 0 / 0.6016 GB, free: 5.488 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001785/0.445, allocations: 0.9701 MB / 0.6026 GB, free: 4.469 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.446, allocations: 169.3 kB / 0.6027 GB, free: 4.309 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/0.4603, allocations: 7.411 MB / 0.61 GB, free: 12.56 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.4614, allocations: 1.048 MB / 0.611 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004184/0.4618, allocations: 113.6 kB / 0.6111 GB, free: 11.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004139/0.4622, allocations: 263.3 kB / 0.6113 GB, free: 11.11 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4622, allocations: 0 / 0.6113 GB, free: 11.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08587/0.5481, allocations: 22.28 MB / 0.6331 GB, free: 5.047 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.81/14.36, allocations: 6.781 kB / 0.6331 GB, free: 5.043 MB / 478.1 MB " [Timeout remaining time 646] (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.41098737390712] Failed to read output from testmodel.py, exit status != 0: 14.487660818034783 14.506222082 14.145407413 Calling exit ...