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.00131/0.00131, 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.0015/0.0015, allocations: 211.8 kB / 24.51 MB, free: 3.918 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.501/1.501, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.1887/0.1887, allocations: 38.56 MB / 353.2 MB, free: 12.3 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.001991/0.001991, allocations: 59.91 kB / 493.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3056, allocations: 62.47 MB / 0.5427 GB, free: 252 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009479/0.3151, allocations: 6.758 MB / 0.5493 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005024/0.3201, allocations: 2.689 MB / 0.5519 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007005/0.3208, allocations: 38.84 kB / 0.552 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.3221, allocations: 380 kB / 0.5523 GB, free: 8.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002156/0.3243, allocations: 0.8046 MB / 0.5531 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007069/0.325, allocations: 306.6 kB / 0.5534 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002108/0.3271, allocations: 1.594 MB / 0.555 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001589/0.3287, allocations: 1.176 MB / 0.5561 GB, free: 6.102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001184/0.3299, allocations: 0.6854 MB / 0.5568 GB, free: 5.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.3311, allocations: 0.7942 MB / 0.5576 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002238/0.3313, allocations: 140 kB / 0.5577 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.3326, allocations: 0.7139 MB / 0.5584 GB, free: 4.168 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005445/0.3331, allocations: 0.5065 MB / 0.5589 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000689/0.3338, allocations: 0.5292 MB / 0.5594 GB, free: 3.129 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002518/0.3363, allocations: 2.138 MB / 0.5615 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3364, allocations: 0 / 0.5615 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3364, allocations: 0 / 0.5615 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.3364, allocations: 0 / 0.5615 GB, free: 0.9844 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.003153/0.3395, allocations: 1.509 MB / 0.563 GB, free: 15.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.3396, allocations: 11.98 kB / 0.563 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.05e-05/0.3396, allocations: 26.19 kB / 0.563 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002107/0.3398, allocations: 168.9 kB / 0.5632 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007312/0.3406, allocations: 180.1 kB / 0.5633 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001483/0.342, allocations: 0.782 MB / 0.5641 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/0.3424, allocations: 388.6 kB / 0.5645 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/0.3425, allocations: 100 kB / 0.5646 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.345, allocations: 1.461 MB / 0.566 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.14e-05/0.3451, allocations: 15.89 kB / 0.566 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000128/0.3452, allocations: 43.98 kB / 0.566 GB, free: 12.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.3453, allocations: 77.97 kB / 0.5661 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002205/0.3475, allocations: 1.272 MB / 0.5674 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007206/0.3547, allocations: 4.736 MB / 0.572 GB, free: 5.875 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001533/0.3563, allocations: 0.8178 MB / 0.5728 GB, free: 5.027 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007942/0.3571, allocations: 468.4 kB / 0.5732 GB, free: 4.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.263e-05/0.3571, allocations: 4.656 kB / 0.5732 GB, free: 4.559 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.3572, allocations: 55.14 kB / 0.5733 GB, free: 4.496 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.045e-06/0.3572, allocations: 0 / 0.5733 GB, free: 4.496 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006632/0.3638, allocations: 2.948 MB / 0.5762 GB, free: 1.516 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.125e-05/0.3639, allocations: 115.4 kB / 0.5763 GB, free: 1.379 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.3649, allocations: 0.6876 MB / 0.577 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.249e-05/0.365, allocations: 37.7 kB / 0.577 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004712/0.3654, allocations: 496.1 kB / 0.5775 GB, free: 148 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002725/0.3657, allocations: 281.8 kB / 0.5777 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003117/0.366, allocations: 190.6 kB / 0.5779 GB, free: 15.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002081/0.3662, allocations: 394.6 kB / 0.5783 GB, free: 15.28 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007531/0.367, allocations: 441.8 kB / 0.5787 GB, free: 14.85 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009952/0.368, allocations: 0.7126 MB / 0.5794 GB, free: 14.01 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.00589/0.3739, allocations: 2.519 MB / 0.5819 GB, free: 11.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.3739, allocations: 0 / 0.5819 GB, free: 11.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002366/0.3763, allocations: 1.309 MB / 0.5831 GB, free: 10.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.3763, allocations: 8 kB / 0.5831 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.3763, allocations: 12 kB / 0.5832 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002657/0.3766, allocations: 85.61 kB / 0.5832 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008839/0.3774, allocations: 215.7 kB / 0.5834 GB, free: 9.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.3786, allocations: 1.343 MB / 0.5848 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007643/0.3794, allocations: 83.8 kB / 0.5848 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-05/0.3795, allocations: 40 kB / 0.5849 GB, free: 8.145 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.0007535/0.3803, allocations: 425.4 kB / 0.5853 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002434/0.3805, allocations: 83.44 kB / 0.5854 GB, free: 7.637 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001903/0.3824, allocations: 0.9827 MB / 0.5863 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.847e-05/0.3824, allocations: 23.94 kB / 0.5863 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.3824, allocations: 0 / 0.5863 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.3824, allocations: 3.984 kB / 0.5863 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003948/0.3864, allocations: 2.067 MB / 0.5884 GB, free: 4.492 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.3864, allocations: 4 kB / 0.5884 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007533/0.3872, allocations: 151.7 kB / 0.5885 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.3873, allocations: 24.89 kB / 0.5885 GB, free: 4.312 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.397e-05/0.3873, allocations: 23.97 kB / 0.5886 GB, free: 4.289 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/0.3885, allocations: 1.283 MB / 0.5898 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3885, allocations: 0 / 0.5898 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002579/0.3911, allocations: 1.651 MB / 0.5914 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004578/0.3916, allocations: 179.3 kB / 0.5916 GB, free: 1.039 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.3917, allocations: 12 kB / 0.5916 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005106/0.3922, allocations: 47.94 kB / 0.5917 GB, free: 0.9805 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.3924, allocations: 68.48 kB / 0.5917 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.941e-05/0.3924, allocations: 19.98 kB / 0.5917 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000671/0.3931, allocations: 479 kB / 0.5922 GB, free: 440 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3931, allocations: 0 / 0.5922 GB, free: 440 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001027/0.3941, allocations: 263.9 kB / 0.5924 GB, free: 176 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.003236/0.3973, allocations: 2.25 MB / 0.5946 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.3994, allocations: 1.108 MB / 0.5957 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3994, allocations: 0 / 0.5957 GB, free: 12.76 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009086/0.4003, allocations: 0.5887 MB / 0.5963 GB, free: 12.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.4016, allocations: 229.9 kB / 0.5965 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01485/0.4164, allocations: 9.047 MB / 0.6054 GB, free: 2.539 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007012/0.4171, allocations: 0.5635 MB / 0.6059 GB, free: 1.945 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007642/0.4179, allocations: 254.9 kB / 0.6061 GB, free: 1.691 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005682/0.4185, allocations: 343.3 kB / 0.6065 GB, free: 1.355 MB / 446.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4185, allocations: 0 / 0.6065 GB, free: 1.355 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0905/0.509, allocations: 22.31 MB / 0.6283 GB, free: 11.37 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.38/16.88, allocations: 10.92 kB / 0.6283 GB, free: 11.36 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.87595745699946] Failed to read output from testmodel.py, exit status != 0: 17.067029147059657 17.088268339 16.746816835 Calling exit ...