Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.001314/0.001314, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002606/0.002606, allocations: 205 kB / 23.73 MB, free: 4.379 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1878/0.1878, allocations: 38.53 MB / 352.5 MB, free: 12.32 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.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",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.002051/0.002051, allocations: 67.89 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3099, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01089/0.3208, allocations: 6.767 MB / 0.5485 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005222/0.326, allocations: 2.714 MB / 0.5512 GB, free: 9.012 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006421/0.3267, allocations: 38.78 kB / 0.5512 GB, free: 8.992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.3279, allocations: 372.7 kB / 0.5516 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002176/0.3301, allocations: 0.8037 MB / 0.5524 GB, free: 8.109 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007667/0.3309, allocations: 307.6 kB / 0.5527 GB, free: 7.859 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002086/0.3329, allocations: 1.59 MB / 0.5542 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.3344, allocations: 1.176 MB / 0.5554 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001102/0.3355, allocations: 0.6889 MB / 0.556 GB, free: 5.699 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.3366, allocations: 0.7907 MB / 0.5568 GB, free: 4.973 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002093/0.3369, allocations: 140 kB / 0.5569 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.3381, allocations: 0.7061 MB / 0.5576 GB, free: 4.129 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005615/0.3387, allocations: 0.5182 MB / 0.5581 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006927/0.3394, allocations: 0.5331 MB / 0.5587 GB, free: 3.074 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002594/0.342, allocations: 2.134 MB / 0.5607 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.342, allocations: 0 / 0.5607 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.342, allocations: 0 / 0.5607 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.283e-05/0.342, allocations: 0 / 0.5607 GB, free: 0.9336 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003456/0.3454, allocations: 1.509 MB / 0.5622 GB, free: 15.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.3455, allocations: 11.98 kB / 0.5622 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002252/0.3457, allocations: 164.9 kB / 0.5624 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007595/0.3465, allocations: 180.1 kB / 0.5626 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001876/0.3484, allocations: 0.7822 MB / 0.5633 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003411/0.3487, allocations: 384.7 kB / 0.5637 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.3489, allocations: 100 kB / 0.5638 GB, free: 13.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002499/0.3514, allocations: 1.461 MB / 0.5652 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.981e-05/0.3514, allocations: 15.89 kB / 0.5652 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.3515, allocations: 43.98 kB / 0.5653 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001287/0.3517, allocations: 73.97 kB / 0.5653 GB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.3539, allocations: 1.265 MB / 0.5666 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007864/0.3617, allocations: 4.748 MB / 0.5712 GB, free: 5.855 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.3633, allocations: 0.8138 MB / 0.572 GB, free: 5.012 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008041/0.3641, allocations: 468.3 kB / 0.5725 GB, free: 4.547 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.781e-05/0.3642, allocations: 20.64 kB / 0.5725 GB, free: 4.527 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.3642, allocations: 43.16 kB / 0.5725 GB, free: 4.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.577e-06/0.3642, allocations: 0 / 0.5725 GB, free: 4.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006392/0.3706, allocations: 2.952 MB / 0.5754 GB, free: 1.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.213e-05/0.3707, allocations: 111.5 kB / 0.5755 GB, free: 1.359 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009305/0.3716, allocations: 0.6991 MB / 0.5762 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.104e-05/0.3717, allocations: 41.7 kB / 0.5762 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003693/0.372, allocations: 496.1 kB / 0.5767 GB, free: 116 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.3723, allocations: 281.6 kB / 0.577 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000296/0.3726, allocations: 190.7 kB / 0.5772 GB, free: 15.64 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000218/0.3728, allocations: 390.7 kB / 0.5775 GB, free: 15.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007465/0.3736, allocations: 441.8 kB / 0.5779 GB, free: 14.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009916/0.3746, allocations: 0.7165 MB / 0.5786 GB, free: 13.98 MB / 430.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.005919/0.3805, allocations: 2.504 MB / 0.5811 GB, free: 11.36 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.3805, allocations: 7.938 kB / 0.5811 GB, free: 11.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.0024/0.3829, allocations: 1.309 MB / 0.5824 GB, free: 10.03 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.3829, allocations: 11.94 kB / 0.5824 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.3829, allocations: 15.92 kB / 0.5824 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002613/0.3832, allocations: 81.61 kB / 0.5825 GB, free: 9.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00088/0.3841, allocations: 228.1 kB / 0.5827 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001279/0.3854, allocations: 1.346 MB / 0.584 GB, free: 8.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007191/0.3861, allocations: 71.89 kB / 0.5841 GB, free: 8.152 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.431e-05/0.3862, allocations: 43.98 kB / 0.5841 GB, free: 8.109 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006648/0.3868, allocations: 421.3 kB / 0.5845 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/0.387, allocations: 83.48 kB / 0.5846 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.3889, allocations: 0.9868 MB / 0.5856 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.694e-05/0.3889, allocations: 19.94 kB / 0.5856 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.3889, allocations: 0 / 0.5856 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.3889, allocations: 7.984 kB / 0.5856 GB, free: 6.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003961/0.3929, allocations: 2.078 MB / 0.5876 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3929, allocations: 0 / 0.5876 GB, free: 4.441 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007381/0.3936, allocations: 143.8 kB / 0.5878 GB, free: 4.301 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.583e-05/0.3937, allocations: 28.88 kB / 0.5878 GB, free: 4.27 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.728e-05/0.3938, allocations: 16 kB / 0.5878 GB, free: 4.254 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.3949, allocations: 1.271 MB / 0.589 GB, free: 2.867 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.3949, allocations: 0 / 0.589 GB, free: 2.867 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.3975, allocations: 1.659 MB / 0.5907 GB, free: 1.184 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004924/0.398, allocations: 171.4 kB / 0.5908 GB, free: 1.016 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001152/0.3981, allocations: 15.98 kB / 0.5908 GB, free: 1 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005185/0.3986, allocations: 47.95 kB / 0.5909 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001659/0.3988, allocations: 60.53 kB / 0.5909 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.3988, allocations: 16 kB / 0.591 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006528/0.3995, allocations: 487 kB / 0.5914 GB, free: 420 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3995, allocations: 4 kB / 0.5914 GB, free: 416 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009444/0.4004, allocations: 259.9 kB / 0.5917 GB, free: 156 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003097/0.4035, allocations: 2.252 MB / 0.5939 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.4056, allocations: 1.116 MB / 0.595 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4056, allocations: 0 / 0.595 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009404/0.4065, allocations: 0.5919 MB / 0.5955 GB, free: 12.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.4077, allocations: 228.7 kB / 0.5958 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.4219, allocations: 9.043 MB / 0.6046 GB, free: 2.512 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007118/0.4226, allocations: 0.5635 MB / 0.6051 GB, free: 1.918 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007631/0.4234, allocations: 254.9 kB / 0.6054 GB, free: 1.664 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005392/0.4239, allocations: 343.3 kB / 0.6057 GB, free: 1.328 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4239, allocations: 3.938 kB / 0.6057 GB, free: 1.324 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0635/0.4874, allocations: 22.68 MB / 0.6279 GB, free: 10.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.71, allocations: 3.75 kB / 0.6279 GB, free: 10.91 MB / 478.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.303111384040676] Failed to read output from testmodel.py, exit status != 0: 12.841282592038624 12.861817684 12.516152879 Calling exit ...