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.001355/0.001355, 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.001567/0.001567, 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.515/1.515, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.189/0.189, allocations: 38.53 MB / 353.2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_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.002199/0.002199, allocations: 78.8 kB / 493.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3573, allocations: 62.47 MB / 0.5428 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.0105/0.3678, allocations: 7.298 MB / 0.5499 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005991/0.3738, allocations: 2.942 MB / 0.5528 GB, free: 8.355 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008046/0.3746, allocations: 42.91 kB / 0.5528 GB, free: 8.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.3759, allocations: 387.2 kB / 0.5532 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.3781, allocations: 0.805 MB / 0.554 GB, free: 7.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008122/0.3789, allocations: 309.4 kB / 0.5543 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002457/0.3813, allocations: 1.592 MB / 0.5558 GB, free: 6.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.3832, allocations: 1.176 MB / 0.557 GB, free: 5.422 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001374/0.3846, allocations: 0.6773 MB / 0.5576 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001456/0.386, allocations: 0.7946 MB / 0.5584 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003185/0.3863, allocations: 140 kB / 0.5585 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001565/0.3879, allocations: 0.7528 MB / 0.5593 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006953/0.3886, allocations: 0.5027 MB / 0.5598 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.3896, allocations: 0.6574 MB / 0.5604 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002797/0.3924, allocations: 2.126 MB / 0.5625 GB, free: 252 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3924, allocations: 0 / 0.5625 GB, free: 252 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3925, allocations: 0 / 0.5625 GB, free: 252 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.491e-05/0.3925, allocations: 0 / 0.5625 GB, free: 252 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.003802/0.3963, allocations: 1.504 MB / 0.5639 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.3964, allocations: 15.98 kB / 0.564 GB, free: 14.69 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.332e-05/0.3964, allocations: 30.19 kB / 0.564 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000278/0.3967, allocations: 172.9 kB / 0.5642 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007922/0.3975, allocations: 176.1 kB / 0.5643 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.3992, allocations: 0.778 MB / 0.5651 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003432/0.3995, allocations: 388.7 kB / 0.5655 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001959/0.3997, allocations: 103.9 kB / 0.5656 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.4023, allocations: 1.469 MB / 0.567 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.428e-05/0.4023, allocations: 3.953 kB / 0.567 GB, free: 11.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.4024, allocations: 44 kB / 0.567 GB, free: 11.38 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001308/0.4026, allocations: 73.97 kB / 0.5671 GB, free: 11.3 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002278/0.4048, allocations: 1.276 MB / 0.5683 GB, free: 10.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008335/0.4132, allocations: 5.102 MB / 0.5733 GB, free: 4.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.4148, allocations: 0.8068 MB / 0.5741 GB, free: 3.922 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008425/0.4157, allocations: 472.4 kB / 0.5746 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.137e-05/0.4157, allocations: 16.59 kB / 0.5746 GB, free: 3.438 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.4158, allocations: 47.14 kB / 0.5746 GB, free: 3.383 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.075e-06/0.4158, allocations: 0 / 0.5746 GB, free: 3.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006974/0.4228, allocations: 2.957 MB / 0.5775 GB, free: 404 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/0.4229, allocations: 111.5 kB / 0.5776 GB, free: 268 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.4239, allocations: 0.6875 MB / 0.5783 GB, free: 15.56 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.112e-05/0.424, allocations: 41.7 kB / 0.5783 GB, free: 15.52 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004027/0.4244, allocations: 496.1 kB / 0.5788 GB, free: 15.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002806/0.4247, allocations: 281.6 kB / 0.5791 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003263/0.425, allocations: 186.6 kB / 0.5793 GB, free: 14.56 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002227/0.4253, allocations: 394.7 kB / 0.5796 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007856/0.426, allocations: 441.8 kB / 0.5801 GB, free: 13.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.4271, allocations: 0.7126 MB / 0.5807 GB, free: 12.89 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.005964/0.433, allocations: 2.508 MB / 0.5832 GB, free: 10.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.433, allocations: 0 / 0.5832 GB, free: 10.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00242/0.4355, allocations: 1.317 MB / 0.5845 GB, free: 8.938 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/0.4355, allocations: 11.94 kB / 0.5845 GB, free: 8.926 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.4355, allocations: 12 kB / 0.5845 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002845/0.4358, allocations: 77.67 kB / 0.5846 GB, free: 8.832 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009589/0.4367, allocations: 231.9 kB / 0.5848 GB, free: 8.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.4381, allocations: 1.346 MB / 0.5861 GB, free: 7.137 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007645/0.4388, allocations: 75.94 kB / 0.5862 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.465e-05/0.4389, allocations: 47.94 kB / 0.5862 GB, free: 7.016 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.0007038/0.4396, allocations: 409.4 kB / 0.5866 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002995/0.4399, allocations: 95.42 kB / 0.5867 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.4418, allocations: 0.9828 MB / 0.5877 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.892e-05/0.4418, allocations: 23.86 kB / 0.5877 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.4418, allocations: 0 / 0.5877 GB, free: 5.492 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.4419, allocations: 4 kB / 0.5877 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004415/0.4463, allocations: 2.242 MB / 0.5899 GB, free: 3.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.4463, allocations: 3.984 kB / 0.5899 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.447, allocations: 139.9 kB / 0.59 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.4471, allocations: 28.78 kB / 0.5901 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.011e-05/0.4472, allocations: 16 kB / 0.5901 GB, free: 2.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.4483, allocations: 1.279 MB / 0.5913 GB, free: 1.598 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.4483, allocations: 8.016 kB / 0.5913 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002708/0.451, allocations: 1.643 MB / 0.5929 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000462/0.4515, allocations: 179.3 kB / 0.5931 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.4517, allocations: 16 kB / 0.5931 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.4522, allocations: 47.94 kB / 0.5932 GB, free: 15.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.4524, allocations: 64.55 kB / 0.5932 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-05/0.4525, allocations: 19.94 kB / 0.5932 GB, free: 15.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007396/0.4532, allocations: 487 kB / 0.5937 GB, free: 15.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4532, allocations: 0 / 0.5937 GB, free: 15.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001042/0.4542, allocations: 259.9 kB / 0.594 GB, free: 14.88 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.003285/0.4575, allocations: 2.246 MB / 0.5962 GB, free: 12.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002268/0.4598, allocations: 1.12 MB / 0.5972 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.4598, allocations: 0 / 0.5972 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009981/0.4608, allocations: 0.5725 MB / 0.5978 GB, free: 10.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.4623, allocations: 236 kB / 0.598 GB, free: 10.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.4788, allocations: 9.05 MB / 0.6069 GB, free: 1.246 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.48, allocations: 1.161 MB / 0.608 GB, free: 60 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008162/0.4808, allocations: 254.9 kB / 0.6082 GB, free: 15.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006098/0.4814, allocations: 351.3 kB / 0.6086 GB, free: 15.46 MB / 462.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4814, allocations: 0 / 0.6086 GB, free: 15.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09163/0.5731, allocations: 21.89 MB / 0.63 GB, free: 9.773 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.15/16.72, allocations: 16.42 kB / 0.63 GB, free: 9.758 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.74216677696677] Failed to read output from testmodel.py, exit status != 0: 16.9122010699939 16.941762205 16.542667377 Calling exit ...