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.001881/0.001881, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.001572/0.001572, allocations: 211.9 kB / 23.74 MB, free: 4.535 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.459/1.459, allocations: 230.6 MB / 257.5 MB, free: 7.965 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.2143/0.2143, allocations: 38.53 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 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.002095/0.002095, allocations: 59.91 kB / 492.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3185, allocations: 62.47 MB / 0.542 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009559/0.328, allocations: 7.304 MB / 0.5491 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00549/0.3335, allocations: 2.935 MB / 0.552 GB, free: 8.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008197/0.3343, allocations: 43.16 kB / 0.552 GB, free: 8.352 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001542/0.3359, allocations: 387.9 kB / 0.5524 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002646/0.3385, allocations: 0.8115 MB / 0.5532 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008147/0.3393, allocations: 303.2 kB / 0.5535 GB, free: 7.199 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002551/0.3419, allocations: 1.59 MB / 0.555 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002067/0.344, allocations: 1.184 MB / 0.5562 GB, free: 5.434 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001382/0.3453, allocations: 0.6817 MB / 0.5569 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.3465, allocations: 0.7884 MB / 0.5576 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001916/0.3467, allocations: 140 kB / 0.5578 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001408/0.3481, allocations: 0.7489 MB / 0.5585 GB, free: 3.547 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005472/0.3487, allocations: 0.5065 MB / 0.559 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007464/0.3494, allocations: 0.6535 MB / 0.5596 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002536/0.3519, allocations: 2.122 MB / 0.5617 GB, free: 260 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3519, allocations: 7.938 kB / 0.5617 GB, free: 252 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3519, allocations: 4 kB / 0.5617 GB, free: 248 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.352, allocations: 0 / 0.5617 GB, free: 248 kB / 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.003339/0.3553, allocations: 1.508 MB / 0.5632 GB, free: 14.7 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.3554, allocations: 11.98 kB / 0.5632 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002269/0.3556, allocations: 168.9 kB / 0.5634 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007434/0.3563, allocations: 176.1 kB / 0.5635 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.3579, allocations: 0.7782 MB / 0.5643 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003209/0.3582, allocations: 392.7 kB / 0.5647 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001787/0.3584, allocations: 100 kB / 0.5648 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002534/0.361, allocations: 1.461 MB / 0.5662 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.363e-05/0.361, allocations: 11.89 kB / 0.5662 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.3611, allocations: 39.98 kB / 0.5662 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.3612, allocations: 85.95 kB / 0.5663 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.3635, allocations: 1.269 MB / 0.5676 GB, free: 10.06 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008288/0.3718, allocations: 5.094 MB / 0.5725 GB, free: 4.797 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001522/0.3733, allocations: 0.8184 MB / 0.5733 GB, free: 3.945 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007982/0.3741, allocations: 468.4 kB / 0.5738 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.404e-05/0.3742, allocations: 9.281 kB / 0.5738 GB, free: 3.473 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.3742, allocations: 51.08 kB / 0.5738 GB, free: 3.414 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.366e-06/0.3742, allocations: 4 kB / 0.5738 GB, free: 3.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006294/0.3805, allocations: 2.956 MB / 0.5767 GB, free: 432 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/0.3806, allocations: 119.4 kB / 0.5768 GB, free: 288 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009158/0.3815, allocations: 0.6837 MB / 0.5775 GB, free: 15.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.76e-05/0.3816, allocations: 37.7 kB / 0.5775 GB, free: 15.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003773/0.3819, allocations: 496.1 kB / 0.578 GB, free: 15.05 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.3822, allocations: 281.6 kB / 0.5783 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002818/0.3825, allocations: 190.6 kB / 0.5785 GB, free: 14.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.3827, allocations: 394.7 kB / 0.5788 GB, free: 14.19 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007439/0.3834, allocations: 437.8 kB / 0.5793 GB, free: 13.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.3844, allocations: 0.7165 MB / 0.58 GB, free: 12.92 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.005734/0.3901, allocations: 2.512 MB / 0.5824 GB, free: 10.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.3902, allocations: 7.984 kB / 0.5824 GB, free: 10.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002393/0.3926, allocations: 1.309 MB / 0.5837 GB, free: 8.961 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.3926, allocations: 11.94 kB / 0.5837 GB, free: 8.949 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.3926, allocations: 11.94 kB / 0.5837 GB, free: 8.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002509/0.3928, allocations: 78.11 kB / 0.5838 GB, free: 8.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008787/0.3937, allocations: 227.7 kB / 0.584 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.395, allocations: 1.346 MB / 0.5853 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000716/0.3957, allocations: 71.88 kB / 0.5854 GB, free: 7.094 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.16e-05/0.3958, allocations: 40 kB / 0.5854 GB, free: 7.055 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.0006426/0.3964, allocations: 421.5 kB / 0.5858 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002007/0.3966, allocations: 95.41 kB / 0.5859 GB, free: 6.539 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002043/0.3987, allocations: 0.975 MB / 0.5869 GB, free: 5.547 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/0.3987, allocations: 23.92 kB / 0.5869 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3987, allocations: 4 kB / 0.5869 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.3987, allocations: 3.984 kB / 0.5869 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004028/0.4028, allocations: 2.238 MB / 0.5891 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.4028, allocations: 4.031 kB / 0.5891 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007441/0.4035, allocations: 143.8 kB / 0.5892 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.976e-05/0.4036, allocations: 24.84 kB / 0.5893 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.522e-05/0.4037, allocations: 20 kB / 0.5893 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.4048, allocations: 1.283 MB / 0.5905 GB, free: 1.621 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4048, allocations: 3.984 kB / 0.5905 GB, free: 1.617 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002613/0.4074, allocations: 1.651 MB / 0.5921 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004863/0.4079, allocations: 175.3 kB / 0.5923 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.408, allocations: 19.98 kB / 0.5923 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005152/0.4085, allocations: 47.94 kB / 0.5924 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.4087, allocations: 60.55 kB / 0.5924 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.114e-05/0.4087, allocations: 16 kB / 0.5925 GB, free: 15.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007104/0.4094, allocations: 490.9 kB / 0.5929 GB, free: 15.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4094, allocations: 0 / 0.5929 GB, free: 15.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001046/0.4105, allocations: 259.9 kB / 0.5932 GB, free: 14.9 MB / 446.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.003143/0.4136, allocations: 2.242 MB / 0.5954 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.4157, allocations: 1.119 MB / 0.5964 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4157, allocations: 0 / 0.5964 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009193/0.4167, allocations: 0.5841 MB / 0.597 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/0.4178, allocations: 232.8 kB / 0.5972 GB, free: 10.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.4317, allocations: 9.047 MB / 0.6061 GB, free: 1.27 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000963/0.4326, allocations: 1.161 MB / 0.6072 GB, free: 84 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007981/0.4334, allocations: 251 kB / 0.6075 GB, free: 15.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005556/0.434, allocations: 347.3 kB / 0.6078 GB, free: 15.49 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.434, allocations: 4 kB / 0.6078 GB, free: 15.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07379/0.5078, allocations: 21.87 MB / 0.6291 GB, free: 9.809 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.98/16.49, allocations: 4.438 kB / 0.6291 GB, free: 9.805 MB / 478.1 MB " [Timeout remaining time 643] (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: 20.030387685001187] Failed to read output from testmodel.py, exit status != 0: 16.615351988999464 16.644157265 16.286622422 Calling exit ...