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.001387/0.001387, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001388/0.001388, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.513/1.513, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.1902/0.1902, allocations: 38.56 MB / 352.5 MB, free: 12.39 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.002088/0.002088, allocations: 70.56 kB / 492.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3788/0.3809, allocations: 62.46 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009639/0.3906, allocations: 6.774 MB / 0.5486 GB, free: 11.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00538/0.396, allocations: 2.695 MB / 0.5512 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007098/0.3967, allocations: 34.91 kB / 0.5512 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.3981, allocations: 387.8 kB / 0.5516 GB, free: 8.707 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002441/0.4005, allocations: 0.8006 MB / 0.5524 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007834/0.4013, allocations: 307.2 kB / 0.5527 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.4036, allocations: 1.591 MB / 0.5542 GB, free: 6.945 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.4053, allocations: 1.161 MB / 0.5554 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.4065, allocations: 0.6888 MB / 0.556 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.4077, allocations: 0.7443 MB / 0.5568 GB, free: 5.016 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.4079, allocations: 140 kB / 0.5569 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.4093, allocations: 0.6983 MB / 0.5576 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005359/0.4099, allocations: 0.5065 MB / 0.5581 GB, free: 3.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006078/0.4105, allocations: 0.5292 MB / 0.5586 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.4129, allocations: 2.138 MB / 0.5607 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4129, allocations: 0 / 0.5607 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4129, allocations: 0 / 0.5607 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.461e-05/0.413, allocations: 0 / 0.5607 GB, free: 0.9961 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.003397/0.4163, allocations: 1.505 MB / 0.5621 GB, free: 15.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.4164, allocations: 15.98 kB / 0.5622 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002096/0.4166, allocations: 164.9 kB / 0.5623 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007048/0.4173, allocations: 184.1 kB / 0.5625 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/0.4189, allocations: 0.7744 MB / 0.5632 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003098/0.4192, allocations: 388.6 kB / 0.5636 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001812/0.4194, allocations: 108 kB / 0.5637 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.4218, allocations: 1.465 MB / 0.5651 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.028e-05/0.4218, allocations: 7.891 kB / 0.5652 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.4219, allocations: 40 kB / 0.5652 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.422, allocations: 81.95 kB / 0.5653 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002189/0.4242, allocations: 1.269 MB / 0.5665 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007322/0.4315, allocations: 4.748 MB / 0.5711 GB, free: 5.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.4331, allocations: 0.8112 MB / 0.5719 GB, free: 5.062 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007968/0.4339, allocations: 464.4 kB / 0.5724 GB, free: 4.602 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.616e-05/0.4339, allocations: 8.656 kB / 0.5724 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.434, allocations: 43.16 kB / 0.5724 GB, free: 4.543 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.296e-06/0.434, allocations: 4 kB / 0.5724 GB, free: 4.539 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006341/0.4403, allocations: 2.952 MB / 0.5753 GB, free: 1.555 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/0.4404, allocations: 111.5 kB / 0.5754 GB, free: 1.422 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008804/0.4413, allocations: 0.703 MB / 0.5761 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.563e-05/0.4413, allocations: 37.7 kB / 0.5761 GB, free: 0.668 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003719/0.4417, allocations: 496.8 kB / 0.5766 GB, free: 180 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.442, allocations: 285.6 kB / 0.5769 GB, free: 15.89 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.4422, allocations: 186.6 kB / 0.5771 GB, free: 15.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.4425, allocations: 394.6 kB / 0.5774 GB, free: 15.31 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007557/0.4432, allocations: 445.8 kB / 0.5779 GB, free: 14.88 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000991/0.4442, allocations: 0.7126 MB / 0.5786 GB, free: 14.04 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.005705/0.4499, allocations: 2.512 MB / 0.581 GB, free: 11.41 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4499, allocations: 0 / 0.581 GB, free: 11.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002381/0.4523, allocations: 1.313 MB / 0.5823 GB, free: 10.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.4523, allocations: 15.94 kB / 0.5823 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.4524, allocations: 8 kB / 0.5823 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002593/0.4526, allocations: 85.61 kB / 0.5824 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009385/0.4536, allocations: 223.7 kB / 0.5826 GB, free: 9.754 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001239/0.4548, allocations: 1.335 MB / 0.5839 GB, free: 8.297 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007083/0.4555, allocations: 79.88 kB / 0.584 GB, free: 8.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.581e-05/0.4556, allocations: 36 kB / 0.584 GB, free: 8.184 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.0006607/0.4562, allocations: 431.3 kB / 0.5844 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/0.4564, allocations: 91.45 kB / 0.5845 GB, free: 7.664 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.4582, allocations: 0.9789 MB / 0.5855 GB, free: 6.668 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.4582, allocations: 23.86 kB / 0.5855 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4582, allocations: 0 / 0.5855 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.4583, allocations: 3.984 kB / 0.5855 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003904/0.4622, allocations: 2.078 MB / 0.5875 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.4622, allocations: 0 / 0.5875 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007013/0.4629, allocations: 139.8 kB / 0.5877 GB, free: 4.371 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.463, allocations: 24.84 kB / 0.5877 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.646e-05/0.463, allocations: 24.02 kB / 0.5877 GB, free: 4.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.4642, allocations: 1.271 MB / 0.589 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4642, allocations: 0 / 0.589 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002623/0.4668, allocations: 1.659 MB / 0.5906 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005252/0.4673, allocations: 167.4 kB / 0.5907 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.4675, allocations: 16 kB / 0.5908 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004948/0.4679, allocations: 51.92 kB / 0.5908 GB, free: 1.016 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.4681, allocations: 60.55 kB / 0.5909 GB, free: 0.957 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.4682, allocations: 16 kB / 0.5909 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007004/0.4689, allocations: 490.9 kB / 0.5914 GB, free: 480 kB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4689, allocations: 3.938 kB / 0.5914 GB, free: 476 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001019/0.4699, allocations: 255.9 kB / 0.5916 GB, free: 220 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.003349/0.4732, allocations: 2.258 MB / 0.5938 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002183/0.4754, allocations: 1.116 MB / 0.5949 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4754, allocations: 0 / 0.5949 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009199/0.4763, allocations: 0.5884 MB / 0.5955 GB, free: 12.19 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.4775, allocations: 225.2 kB / 0.5957 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.4919, allocations: 9.05 MB / 0.6045 GB, free: 2.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/0.4929, allocations: 0.5557 MB / 0.6051 GB, free: 1.984 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001177/0.4941, allocations: 254.9 kB / 0.6053 GB, free: 1.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007438/0.4948, allocations: 347.3 kB / 0.6056 GB, free: 1.391 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4948, allocations: 0 / 0.6056 GB, free: 1.391 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08941/0.5843, allocations: 22.33 MB / 0.6274 GB, free: 11.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.7, allocations: 3.375 kB / 0.6274 GB, free: 11.34 MB / 478.1 MB " [Timeout remaining time 647] (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: 15.64598742686212] Failed to read output from testmodel.py, exit status != 0: 12.831883531063795 12.860700759 12.442247439 Calling exit ...