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.001298/0.001298, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001835/0.001835, allocations: 207.7 kB / 23.73 MB, free: 4.387 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.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.777 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.1853/0.1853, allocations: 38.56 MB / 352.5 MB, free: 12.28 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.002114/0.002114, allocations: 67.91 kB / 492.5 MB, free: 4.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3707, allocations: 62.46 MB / 0.5419 GB, free: 236 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.00929/0.38, allocations: 6.77 MB / 0.5486 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005446/0.3855, allocations: 2.699 MB / 0.5512 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005599/0.386, allocations: 38.5 kB / 0.5512 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.3874, allocations: 372.5 kB / 0.5516 GB, free: 8.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002406/0.3898, allocations: 0.8046 MB / 0.5524 GB, free: 8.102 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008218/0.3906, allocations: 314 kB / 0.5527 GB, free: 7.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002544/0.3931, allocations: 1.591 MB / 0.5542 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001749/0.3949, allocations: 1.164 MB / 0.5554 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001865/0.3967, allocations: 0.6776 MB / 0.556 GB, free: 5.707 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.3985, allocations: 0.7471 MB / 0.5567 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002624/0.3988, allocations: 140 kB / 0.5569 GB, free: 4.898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.4003, allocations: 0.7021 MB / 0.5576 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000678/0.401, allocations: 0.5027 MB / 0.5581 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008663/0.4019, allocations: 0.533 MB / 0.5586 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002696/0.4046, allocations: 2.134 MB / 0.5607 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4046, allocations: 0 / 0.5607 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4046, allocations: 0 / 0.5607 GB, free: 1.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.74e-05/0.4046, allocations: 4 kB / 0.5607 GB, free: 1.012 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.003469/0.4081, allocations: 1.501 MB / 0.5621 GB, free: 15.48 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4081, allocations: 11.98 kB / 0.5621 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002168/0.4083, allocations: 176.9 kB / 0.5623 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007091/0.409, allocations: 180.1 kB / 0.5625 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.4107, allocations: 0.7704 MB / 0.5632 GB, free: 14.31 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003483/0.411, allocations: 388.7 kB / 0.5636 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001734/0.4112, allocations: 108 kB / 0.5637 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.4136, allocations: 1.465 MB / 0.5651 GB, free: 12.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.842e-05/0.4137, allocations: 11.94 kB / 0.5652 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.4138, allocations: 36 kB / 0.5652 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.4139, allocations: 81.95 kB / 0.5653 GB, free: 12.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002231/0.4161, allocations: 1.269 MB / 0.5665 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007553/0.4237, allocations: 4.737 MB / 0.5711 GB, free: 5.938 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/0.4252, allocations: 0.8151 MB / 0.5719 GB, free: 5.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000803/0.426, allocations: 468.3 kB / 0.5724 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.4261, allocations: 8.656 kB / 0.5724 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.4261, allocations: 51.08 kB / 0.5724 GB, free: 4.559 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.096e-06/0.4261, allocations: 0 / 0.5724 GB, free: 4.559 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006567/0.4327, allocations: 2.949 MB / 0.5753 GB, free: 1.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.4328, allocations: 115.5 kB / 0.5754 GB, free: 1.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.4339, allocations: 0.711 MB / 0.5761 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.686e-05/0.4339, allocations: 33.7 kB / 0.5761 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004391/0.4344, allocations: 496.1 kB / 0.5766 GB, free: 196 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000348/0.4347, allocations: 281.6 kB / 0.5769 GB, free: 15.91 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003266/0.435, allocations: 190.6 kB / 0.5771 GB, free: 15.72 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002437/0.4353, allocations: 394.7 kB / 0.5774 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007488/0.436, allocations: 437.8 kB / 0.5779 GB, free: 14.9 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001023/0.437, allocations: 0.7165 MB / 0.5786 GB, free: 14.06 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.005736/0.4428, allocations: 2.514 MB / 0.581 GB, free: 11.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.4428, allocations: 4 kB / 0.581 GB, free: 11.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002439/0.4452, allocations: 1.309 MB / 0.5823 GB, free: 10.11 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.4453, allocations: 11.94 kB / 0.5823 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.4453, allocations: 8 kB / 0.5823 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002775/0.4456, allocations: 89.7 kB / 0.5824 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.4464, allocations: 223.6 kB / 0.5826 GB, free: 9.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001444/0.4479, allocations: 1.334 MB / 0.5839 GB, free: 8.316 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008109/0.4487, allocations: 79.88 kB / 0.584 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.235e-05/0.4488, allocations: 40 kB / 0.584 GB, free: 8.199 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.0007212/0.4495, allocations: 429.4 kB / 0.5844 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.4497, allocations: 83.48 kB / 0.5845 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/0.4515, allocations: 0.9867 MB / 0.5855 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.752e-05/0.4516, allocations: 15.94 kB / 0.5855 GB, free: 6.668 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.4516, allocations: 4 kB / 0.5855 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.4516, allocations: 3.984 kB / 0.5855 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004198/0.4558, allocations: 2.078 MB / 0.5875 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4558, allocations: 0 / 0.5875 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007258/0.4565, allocations: 139.8 kB / 0.5877 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/0.4566, allocations: 24.8 kB / 0.5877 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.331e-05/0.4567, allocations: 23.98 kB / 0.5877 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001077/0.4578, allocations: 1.267 MB / 0.589 GB, free: 2.957 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4578, allocations: 3.938 kB / 0.589 GB, free: 2.953 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002574/0.4603, allocations: 1.659 MB / 0.5906 GB, free: 1.266 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000552/0.4609, allocations: 171.4 kB / 0.5907 GB, free: 1.098 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.461, allocations: 15.94 kB / 0.5908 GB, free: 1.082 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.4616, allocations: 52.03 kB / 0.5908 GB, free: 1.031 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.4617, allocations: 64.48 kB / 0.5909 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.188e-05/0.4618, allocations: 19.98 kB / 0.5909 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006683/0.4624, allocations: 491 kB / 0.5914 GB, free: 488 kB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4624, allocations: 0 / 0.5914 GB, free: 488 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009875/0.4634, allocations: 255.9 kB / 0.5916 GB, free: 232 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.003174/0.4666, allocations: 2.252 MB / 0.5938 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002053/0.4686, allocations: 1.112 MB / 0.5949 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4686, allocations: 0 / 0.5949 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008897/0.4695, allocations: 0.5842 MB / 0.5955 GB, free: 12.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.4707, allocations: 229.5 kB / 0.5957 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/0.4843, allocations: 9.058 MB / 0.6045 GB, free: 2.586 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007286/0.4851, allocations: 0.5596 MB / 0.6051 GB, free: 1.996 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007889/0.4859, allocations: 258.9 kB / 0.6053 GB, free: 1.738 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005537/0.4864, allocations: 343.3 kB / 0.6056 GB, free: 1.402 MB / 446.1 MB Notification: Performance of SimCode: time 9.51e-07/0.4864, allocations: 0 / 0.6056 GB, free: 1.402 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06275/0.5492, allocations: 22.32 MB / 0.6274 GB, free: 11.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.84, allocations: 11.92 kB / 0.6275 GB, free: 11.35 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_BLDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.419022978749126] Failed to read output from testmodel.py, exit status != 0: 12.970356934238225 12.995512934 12.586205955 Calling exit ...