Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001356/0.001356, allocations: 120 kB / 18.49 MB, free: 4.562 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.001517/0.001517, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.1863/0.1863, allocations: 38.5 MB / 349.4 MB, free: 2.566 MB / 270.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.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC",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.001993/0.001993, allocations: 63.91 kB / 487.8 MB, free: 22.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1089, allocations: 62.42 MB / 0.5374 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009403/0.1183, allocations: 7.169 MB / 0.5444 GB, free: 332 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004942/0.1233, allocations: 2.921 MB / 0.5472 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005471/0.1238, allocations: 39.69 kB / 0.5472 GB, free: 13.36 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.1251, allocations: 377.9 kB / 0.5476 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001957/0.127, allocations: 0.805 MB / 0.5484 GB, free: 12.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006978/0.1277, allocations: 299.6 kB / 0.5487 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002046/0.1298, allocations: 1.585 MB / 0.5502 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001571/0.1313, allocations: 1.234 MB / 0.5514 GB, free: 9.027 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009342/0.1323, allocations: 0.6659 MB / 0.5521 GB, free: 8.359 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001057/0.1333, allocations: 0.7904 MB / 0.5529 GB, free: 7.566 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002121/0.1335, allocations: 144 kB / 0.553 GB, free: 7.426 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.1347, allocations: 0.7138 MB / 0.5537 GB, free: 6.711 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005366/0.1353, allocations: 0.5104 MB / 0.5542 GB, free: 6.199 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007625/0.136, allocations: 0.6535 MB / 0.5548 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002498/0.1385, allocations: 2.126 MB / 0.5569 GB, free: 3.41 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1385, allocations: 0 / 0.5569 GB, free: 3.41 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1385, allocations: 4 kB / 0.5569 GB, free: 3.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.748e-05/0.1386, allocations: 4 kB / 0.5569 GB, free: 3.402 MB / 414.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.003337/0.1419, allocations: 1.577 MB / 0.5584 GB, free: 1.773 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.1419, allocations: 12.03 kB / 0.5585 GB, free: 1.762 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.732e-05/0.142, allocations: 26.19 kB / 0.5585 GB, free: 1.734 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002281/0.1422, allocations: 164.9 kB / 0.5586 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007459/0.1429, allocations: 176.1 kB / 0.5588 GB, free: 1.391 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00152/0.1445, allocations: 0.854 MB / 0.5596 GB, free: 0.5 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.1447, allocations: 204.8 kB / 0.5598 GB, free: 280 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.1449, allocations: 107.9 kB / 0.5599 GB, free: 172 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/0.1473, allocations: 1.461 MB / 0.5614 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.993e-05/0.1474, allocations: 11.89 kB / 0.5614 GB, free: 14.63 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.1475, allocations: 39.98 kB / 0.5614 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.1476, allocations: 77.97 kB / 0.5615 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.1499, allocations: 1.276 MB / 0.5627 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007519/0.1574, allocations: 5.182 MB / 0.5678 GB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/0.1591, allocations: 0.9717 MB / 0.5687 GB, free: 6.852 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008162/0.1599, allocations: 468.9 kB / 0.5692 GB, free: 6.387 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.051e-05/0.16, allocations: 12.56 kB / 0.5692 GB, free: 6.375 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.16, allocations: 39.69 kB / 0.5692 GB, free: 6.324 MB / 430.1 MB Notification: Performance of pre-optimization done (n=74): time 2.985e-06/0.16, allocations: 0 / 0.5692 GB, free: 6.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=78): time 0.006702/0.1667, allocations: 3.105 MB / 0.5723 GB, free: 3.148 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/0.1668, allocations: 111.4 kB / 0.5724 GB, free: 3.016 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000944/0.1677, allocations: 0.6837 MB / 0.5731 GB, free: 2.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.049e-05/0.1678, allocations: 45.64 kB / 0.5731 GB, free: 2.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003802/0.1682, allocations: 496.1 kB / 0.5736 GB, free: 1.777 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.1684, allocations: 281.6 kB / 0.5738 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003054/0.1687, allocations: 190.6 kB / 0.574 GB, free: 1.305 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002183/0.1689, allocations: 390.7 kB / 0.5744 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008004/0.1697, allocations: 445.7 kB / 0.5748 GB, free: 492 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.1708, allocations: 0.7164 MB / 0.5755 GB, free: 15.64 MB / 446.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.006029/0.1768, allocations: 2.587 MB / 0.578 GB, free: 12.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.1768, allocations: 4 kB / 0.578 GB, free: 12.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002405/0.1792, allocations: 1.317 MB / 0.5793 GB, free: 11.58 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.1792, allocations: 11.94 kB / 0.5793 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/0.1792, allocations: 8 kB / 0.5794 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002837/0.1795, allocations: 86.02 kB / 0.5794 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008847/0.1804, allocations: 227.7 kB / 0.5797 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.1819, allocations: 1.446 MB / 0.5811 GB, free: 9.656 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.1826, allocations: 75.88 kB / 0.5811 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.716e-05/0.1827, allocations: 43.94 kB / 0.5812 GB, free: 9.539 MB / 446.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.0006325/0.1833, allocations: 421.4 kB / 0.5816 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.1835, allocations: 87.44 kB / 0.5817 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001888/0.1854, allocations: 0.9821 MB / 0.5826 GB, free: 8.035 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.659e-05/0.1854, allocations: 19.94 kB / 0.5826 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.1854, allocations: 4 kB / 0.5826 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.1854, allocations: 3.984 kB / 0.5826 GB, free: 8.008 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003943/0.1894, allocations: 2.262 MB / 0.5849 GB, free: 5.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.1894, allocations: 3.984 kB / 0.5849 GB, free: 5.668 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007377/0.1901, allocations: 147.8 kB / 0.585 GB, free: 5.523 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/0.1902, allocations: 24.84 kB / 0.585 GB, free: 5.496 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.1903, allocations: 16 kB / 0.585 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.1914, allocations: 1.386 MB / 0.5864 GB, free: 3.953 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1914, allocations: 0 / 0.5864 GB, free: 3.953 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/0.1939, allocations: 1.659 MB / 0.588 GB, free: 2.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004006/0.1943, allocations: 248.5 kB / 0.5883 GB, free: 2.008 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001073/0.1944, allocations: 16 kB / 0.5883 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/0.195, allocations: 51.94 kB / 0.5883 GB, free: 1.941 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.1952, allocations: 56.48 kB / 0.5884 GB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.1952, allocations: 19.94 kB / 0.5884 GB, free: 1.867 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006986/0.1959, allocations: 487 kB / 0.5889 GB, free: 1.395 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1959, allocations: 0 / 0.5889 GB, free: 1.395 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001167/0.1971, allocations: 263.8 kB / 0.5891 GB, free: 1.137 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.2522/0.4493, allocations: 2.24 MB / 0.5913 GB, free: 49.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002159/0.4514, allocations: 1.188 MB / 0.5925 GB, free: 49.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.4514, allocations: 0 / 0.5925 GB, free: 49.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008635/0.4523, allocations: 0.5773 MB / 0.593 GB, free: 49.36 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.4535, allocations: 235.2 kB / 0.5932 GB, free: 49.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.4674, allocations: 9.036 MB / 0.6021 GB, free: 44.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009784/0.4683, allocations: 1.161 MB / 0.6032 GB, free: 43.88 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008807/0.4692, allocations: 254.9 kB / 0.6034 GB, free: 43.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/0.4697, allocations: 344 kB / 0.6038 GB, free: 43.59 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4697, allocations: 3.938 kB / 0.6038 GB, free: 43.58 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04522/0.5149, allocations: 21.11 MB / 0.6244 GB, free: 31.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/15.36, allocations: 8.062 kB / 0.6244 GB, free: 31.71 MB / 446.1 MB " [Timeout remaining time 644] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --stepSize=0.00115518 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 18.354759282025043] Failed to read output from testmodel.py, exit status != 0: 15.51192237896612 15.530780031 15.388234402 Calling exit ...