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.001623/0.001623, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00181/0.00181, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.2092/0.2092, allocations: 38.53 MB / 353.2 MB, free: 12.53 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.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.002025/0.002025, allocations: 63.89 kB / 493.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3109/0.3129, allocations: 62.48 MB / 0.5428 GB, free: 440 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01019/0.3231, allocations: 7.292 MB / 0.5499 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005341/0.3284, allocations: 2.939 MB / 0.5528 GB, free: 8.379 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.329, allocations: 43 kB / 0.5528 GB, free: 8.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.3303, allocations: 384.3 kB / 0.5532 GB, free: 8.059 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002116/0.3324, allocations: 0.8195 MB / 0.554 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008297/0.3332, allocations: 298.9 kB / 0.5543 GB, free: 7.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002487/0.3357, allocations: 1.594 MB / 0.5558 GB, free: 6.281 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.3373, allocations: 1.181 MB / 0.557 GB, free: 5.438 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001223/0.3385, allocations: 0.6846 MB / 0.5576 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001356/0.3399, allocations: 0.7925 MB / 0.5584 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002133/0.3401, allocations: 140 kB / 0.5585 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.3415, allocations: 0.7489 MB / 0.5593 GB, free: 3.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005538/0.3421, allocations: 0.5066 MB / 0.5598 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007571/0.3428, allocations: 0.6574 MB / 0.5604 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.3454, allocations: 2.122 MB / 0.5625 GB, free: 268 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3454, allocations: 4 kB / 0.5625 GB, free: 264 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3454, allocations: 4 kB / 0.5625 GB, free: 260 kB / 398.1 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.3454, allocations: 0 / 0.5625 GB, free: 260 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.003391/0.3488, allocations: 1.508 MB / 0.564 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3489, allocations: 11.98 kB / 0.564 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.805e-05/0.3489, allocations: 26.19 kB / 0.564 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002202/0.3491, allocations: 172.9 kB / 0.5642 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007518/0.3499, allocations: 172.1 kB / 0.5643 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001556/0.3514, allocations: 0.7819 MB / 0.5651 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003992/0.3518, allocations: 388.7 kB / 0.5655 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002359/0.3521, allocations: 100 kB / 0.5656 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002612/0.3547, allocations: 1.465 MB / 0.567 GB, free: 11.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.6e-05/0.3547, allocations: 11.95 kB / 0.567 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.3549, allocations: 43.98 kB / 0.567 GB, free: 11.39 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.355, allocations: 73.97 kB / 0.5671 GB, free: 11.32 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002396/0.3574, allocations: 1.272 MB / 0.5684 GB, free: 10.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008175/0.3656, allocations: 5.098 MB / 0.5733 GB, free: 4.781 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.3672, allocations: 0.8194 MB / 0.5741 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008204/0.368, allocations: 468.4 kB / 0.5746 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.16e-05/0.3681, allocations: 13.22 kB / 0.5746 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.174e-05/0.3681, allocations: 43.16 kB / 0.5746 GB, free: 3.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 2.926e-06/0.3681, allocations: 4 kB / 0.5746 GB, free: 3.398 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006749/0.3749, allocations: 2.948 MB / 0.5775 GB, free: 428 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.443e-05/0.3749, allocations: 111.5 kB / 0.5776 GB, free: 292 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001044/0.376, allocations: 0.6953 MB / 0.5783 GB, free: 15.58 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.3761, allocations: 37.7 kB / 0.5783 GB, free: 15.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004146/0.3765, allocations: 496.2 kB / 0.5788 GB, free: 15.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002777/0.3767, allocations: 285.6 kB / 0.5791 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003119/0.3771, allocations: 190.6 kB / 0.5793 GB, free: 14.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002447/0.3773, allocations: 390.7 kB / 0.5796 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007826/0.3781, allocations: 437.8 kB / 0.5801 GB, free: 13.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.3791, allocations: 0.7165 MB / 0.5808 GB, free: 12.91 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.005878/0.385, allocations: 2.511 MB / 0.5832 GB, free: 10.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.091e-05/0.385, allocations: 4 kB / 0.5832 GB, free: 10.28 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002511/0.3875, allocations: 1.316 MB / 0.5845 GB, free: 8.945 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.3875, allocations: 11.94 kB / 0.5845 GB, free: 8.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.3875, allocations: 8.625 kB / 0.5845 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002955/0.3878, allocations: 93.66 kB / 0.5846 GB, free: 8.828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009054/0.3887, allocations: 223.6 kB / 0.5848 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.3901, allocations: 1.338 MB / 0.5861 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008025/0.3909, allocations: 79.88 kB / 0.5862 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.451e-05/0.391, allocations: 43.94 kB / 0.5862 GB, free: 7.027 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.0007182/0.3917, allocations: 409.5 kB / 0.5866 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002614/0.392, allocations: 83.44 kB / 0.5867 GB, free: 6.535 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001902/0.3939, allocations: 0.9868 MB / 0.5877 GB, free: 5.535 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-05/0.3939, allocations: 15.94 kB / 0.5877 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3939, allocations: 8 kB / 0.5877 GB, free: 5.512 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3939, allocations: 3.984 kB / 0.5877 GB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004377/0.3983, allocations: 2.245 MB / 0.5899 GB, free: 3.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.3983, allocations: 0 / 0.5899 GB, free: 3.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007487/0.399, allocations: 143.8 kB / 0.59 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.3992, allocations: 28.78 kB / 0.5901 GB, free: 3.023 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.3992, allocations: 12 kB / 0.5901 GB, free: 3.012 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.4004, allocations: 1.283 MB / 0.5913 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4004, allocations: 0 / 0.5913 GB, free: 1.613 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002688/0.4031, allocations: 1.655 MB / 0.5929 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004704/0.4035, allocations: 175.3 kB / 0.5931 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.4037, allocations: 16 kB / 0.5931 GB, free: 15.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005742/0.4043, allocations: 47.94 kB / 0.5932 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.4044, allocations: 56.55 kB / 0.5932 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.376e-05/0.4045, allocations: 23.94 kB / 0.5932 GB, free: 15.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007614/0.4052, allocations: 483 kB / 0.5937 GB, free: 15.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4052, allocations: 0 / 0.5937 GB, free: 15.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001064/0.4063, allocations: 259.9 kB / 0.594 GB, free: 14.89 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.003333/0.4096, allocations: 2.254 MB / 0.5962 GB, free: 12.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002175/0.4118, allocations: 1.115 MB / 0.5972 GB, free: 11.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.4118, allocations: 0 / 0.5972 GB, free: 11.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009654/0.4128, allocations: 0.5779 MB / 0.5978 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.001321/0.4141, allocations: 232.1 kB / 0.598 GB, free: 10.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01602/0.4301, allocations: 9.059 MB / 0.6069 GB, free: 1.258 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.4312, allocations: 1.161 MB / 0.608 GB, free: 72 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008135/0.432, allocations: 251 kB / 0.6083 GB, free: 15.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006045/0.4326, allocations: 347.2 kB / 0.6086 GB, free: 15.48 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4326, allocations: 0 / 0.6086 GB, free: 15.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06325/0.4959, allocations: 21.89 MB / 0.63 GB, free: 9.797 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/16.81, allocations: 26.83 kB / 0.63 GB, free: 9.777 MB / 478.1 MB " [Timeout remaining time 643] (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: 19.8463642099523] Failed to read output from testmodel.py, exit status != 0: 16.995397221005987 17.024945216 16.674112071 Calling exit ...