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.001296/0.001296, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001778/0.001778, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.508/1.508, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.1961/0.1961, allocations: 38.55 MB / 353.2 MB, free: 12.39 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,fileNamePrefix="PowerSystems_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.002158/0.002158, allocations: 71.89 kB / 493.3 MB, free: 4.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3316, allocations: 62.47 MB / 0.5427 GB, free: 260 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008458/0.3401, allocations: 6.074 MB / 0.5486 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005396/0.3455, allocations: 2.508 MB / 0.5511 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001026/0.3465, allocations: 38.78 kB / 0.5511 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.3481, allocations: 321.7 kB / 0.5514 GB, free: 9.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.3501, allocations: 0.6035 MB / 0.552 GB, free: 8.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009852/0.3511, allocations: 294.8 kB / 0.5523 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002375/0.3535, allocations: 1.201 MB / 0.5535 GB, free: 8.043 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001068/0.3545, allocations: 0.7768 MB / 0.5542 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007607/0.3553, allocations: 0.4934 MB / 0.5547 GB, free: 7.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009518/0.3563, allocations: 0.565 MB / 0.5553 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.3564, allocations: 87.19 kB / 0.5554 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008526/0.3573, allocations: 357.7 kB / 0.5557 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004943/0.3577, allocations: 350 kB / 0.556 GB, free: 6.465 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005303/0.3583, allocations: 366.2 kB / 0.5564 GB, free: 6.246 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.3601, allocations: 1.387 MB / 0.5577 GB, free: 4.863 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.3602, allocations: 0 / 0.5577 GB, free: 4.863 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3602, allocations: 4 kB / 0.5577 GB, free: 4.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.3602, allocations: 0 / 0.5577 GB, free: 4.859 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.002319/0.3625, allocations: 1.084 MB / 0.5588 GB, free: 3.742 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.3625, allocations: 11.98 kB / 0.5588 GB, free: 3.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.919e-05/0.3626, allocations: 22.12 kB / 0.5588 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001469/0.3627, allocations: 122.7 kB / 0.5589 GB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007184/0.3634, allocations: 148.3 kB / 0.5591 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.3647, allocations: 0.6261 MB / 0.5597 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.3649, allocations: 101.4 kB / 0.5598 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.365, allocations: 75.97 kB / 0.5599 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/0.3668, allocations: 0.9608 MB / 0.5608 GB, free: 1.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.3668, allocations: 7.953 kB / 0.5608 GB, free: 1.582 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.717e-05/0.3669, allocations: 24 kB / 0.5608 GB, free: 1.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001216/0.367, allocations: 65.22 kB / 0.5609 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001449/0.3685, allocations: 0.7818 MB / 0.5617 GB, free: 0.7109 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.005548/0.374, allocations: 3.405 MB / 0.565 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008656/0.3749, allocations: 418.9 kB / 0.5654 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004432/0.3754, allocations: 223.1 kB / 0.5656 GB, free: 12.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.3754, allocations: 7.859 kB / 0.5656 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.3754, allocations: 42.55 kB / 0.5656 GB, free: 12.41 MB / 414.1 MB Notification: Performance of pre-optimization done (n=37): time 5.32e-06/0.3754, allocations: 3.984 kB / 0.5656 GB, free: 12.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=55): time 0.01143/0.3869, allocations: 3.403 MB / 0.569 GB, free: 8.938 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.387, allocations: 111.2 kB / 0.5691 GB, free: 8.805 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007687/0.3877, allocations: 0.5262 MB / 0.5696 GB, free: 8.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.781e-05/0.3878, allocations: 37.7 kB / 0.5696 GB, free: 8.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000303/0.3881, allocations: 408.1 kB / 0.57 GB, free: 7.824 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002115/0.3883, allocations: 202.3 kB / 0.5702 GB, free: 7.625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002227/0.3885, allocations: 130.6 kB / 0.5703 GB, free: 7.492 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.3887, allocations: 370.8 kB / 0.5707 GB, free: 7.121 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005231/0.3893, allocations: 281.8 kB / 0.571 GB, free: 6.844 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006612/0.3899, allocations: 0.5033 MB / 0.5714 GB, free: 6.234 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.3912, allocations: 0.8598 MB / 0.5723 GB, free: 5.273 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3912, allocations: 4 kB / 0.5723 GB, free: 5.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003675/0.3949, allocations: 1.303 MB / 0.5736 GB, free: 3.945 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.3949, allocations: 8 kB / 0.5736 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.3949, allocations: 11.98 kB / 0.5736 GB, free: 3.926 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/0.3968, allocations: 463.3 kB / 0.574 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004855/0.3972, allocations: 111.8 kB / 0.5741 GB, free: 3.352 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01195/0.4092, allocations: 8.742 MB / 0.5827 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006574/0.4099, allocations: 31.98 kB / 0.5827 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.36e-05/0.4099, allocations: 28 kB / 0.5827 GB, free: 10.07 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.000467/0.4104, allocations: 313.6 kB / 0.583 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.4105, allocations: 59.62 kB / 0.5831 GB, free: 9.699 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/0.4138, allocations: 1.162 MB / 0.5842 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.4138, allocations: 4 kB / 0.5842 GB, free: 8.516 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4138, allocations: 4 kB / 0.5842 GB, free: 8.512 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/0.4139, allocations: 15.86 kB / 0.5842 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00467/0.4185, allocations: 1.975 MB / 0.5862 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.4185, allocations: 0 / 0.5862 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003604/0.4189, allocations: 71.89 kB / 0.5862 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.4205, allocations: 455 kB / 0.5867 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.451e-05/0.4205, allocations: 15.98 kB / 0.5867 GB, free: 5.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/0.4315, allocations: 8.478 MB / 0.595 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4315, allocations: 0 / 0.595 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004094/0.4356, allocations: 1.703 MB / 0.5966 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003349/0.436, allocations: 123.5 kB / 0.5967 GB, free: 11.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-05/0.4361, allocations: 11.94 kB / 0.5968 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000426/0.4365, allocations: 23.98 kB / 0.5968 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/0.4367, allocations: 56.39 kB / 0.5968 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.422e-05/0.4368, allocations: 19.98 kB / 0.5969 GB, free: 11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005361/0.4373, allocations: 366.8 kB / 0.5972 GB, free: 10.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4373, allocations: 0 / 0.5972 GB, free: 10.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001111/0.4384, allocations: 255.9 kB / 0.5974 GB, free: 10.39 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.004409/0.4428, allocations: 2.286 MB / 0.5997 GB, free: 8.051 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002614/0.4454, allocations: 1.322 MB / 0.601 GB, free: 6.672 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4454, allocations: 0 / 0.601 GB, free: 6.672 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001808/0.4472, allocations: 0.9701 MB / 0.6019 GB, free: 5.652 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.4483, allocations: 173.1 kB / 0.6021 GB, free: 5.488 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.4622, allocations: 7.406 MB / 0.6093 GB, free: 13.74 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000605/0.4628, allocations: 456.9 kB / 0.6098 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000417/0.4632, allocations: 109.7 kB / 0.6099 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003786/0.4636, allocations: 259.3 kB / 0.6101 GB, free: 12.91 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4636, allocations: 0 / 0.6101 GB, free: 12.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06932/0.5329, allocations: 22.59 MB / 0.6322 GB, free: 6.621 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.42/14.95, allocations: 7.938 kB / 0.6322 GB, free: 6.613 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 & /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.984927618992515] Failed to read output from testmodel.py, exit status != 0: 15.147484921035357 15.171246652 14.806668485 Calling exit ...