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.001374/0.001374, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001554/0.001554, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 8.047 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.1954/0.1954, allocations: 38.53 MB / 352.5 MB, free: 12.57 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.002236/0.002236, allocations: 67.03 kB / 492.5 MB, free: 4.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.311, allocations: 62.47 MB / 0.542 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01039/0.3214, allocations: 7.293 MB / 0.5491 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005727/0.3272, allocations: 2.935 MB / 0.552 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.3282, allocations: 38.59 kB / 0.552 GB, free: 8.379 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001736/0.3299, allocations: 400.1 kB / 0.5524 GB, free: 8.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002603/0.3325, allocations: 0.8046 MB / 0.5532 GB, free: 7.473 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3336, allocations: 313.9 kB / 0.5535 GB, free: 7.215 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002794/0.3364, allocations: 1.595 MB / 0.555 GB, free: 6.293 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001898/0.3383, allocations: 1.176 MB / 0.5562 GB, free: 5.453 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.3397, allocations: 0.6772 MB / 0.5569 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001542/0.3412, allocations: 0.7895 MB / 0.5576 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000325/0.3416, allocations: 140 kB / 0.5578 GB, free: 4.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00159/0.3432, allocations: 0.7567 MB / 0.5585 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000675/0.3438, allocations: 0.4988 MB / 0.559 GB, free: 3.082 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008845/0.3447, allocations: 0.6574 MB / 0.5596 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002503/0.3472, allocations: 2.126 MB / 0.5617 GB, free: 296 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3472, allocations: 0 / 0.5617 GB, free: 296 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3472, allocations: 0 / 0.5617 GB, free: 296 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.3472, allocations: 0 / 0.5617 GB, free: 296 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.003125/0.3504, allocations: 1.508 MB / 0.5632 GB, free: 14.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.3504, allocations: 19.97 kB / 0.5632 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002152/0.3506, allocations: 168.9 kB / 0.5634 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000702/0.3513, allocations: 180.1 kB / 0.5635 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.3529, allocations: 0.7743 MB / 0.5643 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003388/0.3533, allocations: 388.7 kB / 0.5647 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001726/0.3534, allocations: 104 kB / 0.5648 GB, free: 13.03 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00241/0.3558, allocations: 1.469 MB / 0.5662 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.3559, allocations: 3.953 kB / 0.5662 GB, free: 11.49 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.356, allocations: 40 kB / 0.5662 GB, free: 11.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001233/0.3561, allocations: 77.95 kB / 0.5663 GB, free: 11.37 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002232/0.3583, allocations: 1.276 MB / 0.5676 GB, free: 10.1 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007687/0.366, allocations: 5.098 MB / 0.5725 GB, free: 4.832 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001532/0.3676, allocations: 0.8146 MB / 0.5733 GB, free: 3.984 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008026/0.3684, allocations: 464.4 kB / 0.5738 GB, free: 3.523 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.096e-05/0.3684, allocations: 12.64 kB / 0.5738 GB, free: 3.512 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.344e-05/0.3685, allocations: 51.09 kB / 0.5738 GB, free: 3.453 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 2.826e-06/0.3685, allocations: 0 / 0.5738 GB, free: 3.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006414/0.3749, allocations: 2.957 MB / 0.5767 GB, free: 476 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.3749, allocations: 119.6 kB / 0.5768 GB, free: 332 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009916/0.3759, allocations: 0.6798 MB / 0.5775 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.134e-05/0.376, allocations: 45.64 kB / 0.5775 GB, free: 15.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003915/0.3764, allocations: 496.1 kB / 0.578 GB, free: 15.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002616/0.3767, allocations: 281.6 kB / 0.5783 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003024/0.377, allocations: 186.6 kB / 0.5785 GB, free: 14.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002502/0.3772, allocations: 390.7 kB / 0.5788 GB, free: 14.24 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008295/0.378, allocations: 445.8 kB / 0.5793 GB, free: 13.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.3791, allocations: 0.7126 MB / 0.58 GB, free: 12.96 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.005918/0.385, allocations: 2.519 MB / 0.5824 GB, free: 10.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.385, allocations: 4 kB / 0.5824 GB, free: 10.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002746/0.3878, allocations: 1.305 MB / 0.5837 GB, free: 9.004 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.3878, allocations: 15.94 kB / 0.5837 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.3878, allocations: 8 kB / 0.5837 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000298/0.3881, allocations: 85.66 kB / 0.5838 GB, free: 8.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009025/0.389, allocations: 227.6 kB / 0.584 GB, free: 8.668 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.3904, allocations: 1.335 MB / 0.5853 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008175/0.3912, allocations: 79.94 kB / 0.5854 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.3913, allocations: 40 kB / 0.5854 GB, free: 7.094 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.000637/0.392, allocations: 413.4 kB / 0.5858 GB, free: 6.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.3921, allocations: 91.58 kB / 0.5859 GB, free: 6.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001822/0.394, allocations: 0.9905 MB / 0.5869 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.89e-05/0.394, allocations: 19.94 kB / 0.5869 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.394, allocations: 0 / 0.5869 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.394, allocations: 7.984 kB / 0.5869 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00409/0.3981, allocations: 2.238 MB / 0.5891 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3981, allocations: 0 / 0.5891 GB, free: 3.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007337/0.3989, allocations: 135.8 kB / 0.5892 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.399, allocations: 28.88 kB / 0.5892 GB, free: 3.086 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.049e-05/0.399, allocations: 20 kB / 0.5893 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.4001, allocations: 1.279 MB / 0.5905 GB, free: 1.672 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4001, allocations: 4.031 kB / 0.5905 GB, free: 1.668 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002783/0.4029, allocations: 1.655 MB / 0.5921 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004623/0.4033, allocations: 171.3 kB / 0.5923 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000125/0.4035, allocations: 16 kB / 0.5923 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.404, allocations: 47.94 kB / 0.5924 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4042, allocations: 68.47 kB / 0.5924 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.77e-05/0.4042, allocations: 23.98 kB / 0.5925 GB, free: 15.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007124/0.4049, allocations: 487 kB / 0.5929 GB, free: 15.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4049, allocations: 0 / 0.5929 GB, free: 15.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001011/0.4059, allocations: 263.9 kB / 0.5932 GB, free: 14.94 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.003154/0.4091, allocations: 2.241 MB / 0.5954 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002078/0.4112, allocations: 1.116 MB / 0.5964 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4112, allocations: 192 / 0.5964 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009464/0.4121, allocations: 0.5802 MB / 0.597 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.4132, allocations: 228.7 kB / 0.5972 GB, free: 10.72 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01456/0.4278, allocations: 9.062 MB / 0.6061 GB, free: 1.305 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009411/0.4288, allocations: 1.165 MB / 0.6072 GB, free: 116 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007688/0.4295, allocations: 247 kB / 0.6075 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.43, allocations: 347.2 kB / 0.6078 GB, free: 15.53 MB / 462.1 MB Notification: Performance of SimCode: time 9.61e-07/0.43, allocations: 0 / 0.6078 GB, free: 15.53 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07483/0.5049, allocations: 21.87 MB / 0.6291 GB, free: 9.84 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.08/16.58, allocations: 4.438 kB / 0.6291 GB, free: 9.836 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.38069249293767] Failed to read output from testmodel.py, exit status != 0: 16.70866476208903 16.737914541 16.385331591 Calling exit ...