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.00137/0.00137, 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.001498/0.001498, allocations: 219.9 kB / 23.73 MB, free: 4.164 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.1893/0.1893, allocations: 38.56 MB / 352.5 MB, free: 12.26 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,fileNamePrefix="PowerSystems_latest_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.002192/0.002192, allocations: 67.91 kB / 492.5 MB, free: 4.645 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3335, allocations: 62.45 MB / 0.5419 GB, free: 228 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009146/0.3426, allocations: 6.78 MB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00607/0.3487, allocations: 2.707 MB / 0.5512 GB, free: 8.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007696/0.3495, allocations: 35.16 kB / 0.5512 GB, free: 8.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.3508, allocations: 371.7 kB / 0.5516 GB, free: 8.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00283/0.3537, allocations: 0.8006 MB / 0.5524 GB, free: 8.086 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009766/0.3547, allocations: 307 kB / 0.5527 GB, free: 7.836 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003377/0.358, allocations: 1.59 MB / 0.5542 GB, free: 6.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002262/0.3603, allocations: 1.161 MB / 0.5553 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001969/0.3623, allocations: 0.6856 MB / 0.556 GB, free: 5.695 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.3637, allocations: 0.7427 MB / 0.5567 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002359/0.364, allocations: 140 kB / 0.5569 GB, free: 4.887 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001658/0.3656, allocations: 0.6982 MB / 0.5576 GB, free: 4.188 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007188/0.3663, allocations: 0.5105 MB / 0.5581 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000902/0.3672, allocations: 0.533 MB / 0.5586 GB, free: 3.141 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003067/0.3703, allocations: 2.13 MB / 0.5607 GB, free: 1.004 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3703, allocations: 0 / 0.5607 GB, free: 1.004 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3703, allocations: 0 / 0.5607 GB, free: 1.004 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.3703, allocations: 4 kB / 0.5607 GB, free: 1 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.00346/0.3738, allocations: 1.501 MB / 0.5621 GB, free: 15.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.3739, allocations: 11.98 kB / 0.5621 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002411/0.3741, allocations: 176.8 kB / 0.5623 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007239/0.3748, allocations: 180.1 kB / 0.5625 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001668/0.3765, allocations: 0.7783 MB / 0.5632 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003751/0.3769, allocations: 384.7 kB / 0.5636 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.3771, allocations: 104 kB / 0.5637 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002462/0.3795, allocations: 1.465 MB / 0.5651 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.686e-05/0.3796, allocations: 11.95 kB / 0.5651 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.3797, allocations: 43.98 kB / 0.5652 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001338/0.3798, allocations: 81.91 kB / 0.5653 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002178/0.382, allocations: 1.265 MB / 0.5665 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007433/0.3894, allocations: 4.74 MB / 0.5711 GB, free: 5.918 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.3909, allocations: 0.818 MB / 0.5719 GB, free: 5.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007869/0.3917, allocations: 468.3 kB / 0.5724 GB, free: 4.605 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.755e-05/0.3918, allocations: 12.66 kB / 0.5724 GB, free: 4.594 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.3918, allocations: 47.16 kB / 0.5724 GB, free: 4.539 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.126e-06/0.3918, allocations: 4 kB / 0.5724 GB, free: 4.535 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006296/0.3981, allocations: 2.949 MB / 0.5753 GB, free: 1.555 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.765e-05/0.3982, allocations: 111.5 kB / 0.5754 GB, free: 1.422 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009391/0.3991, allocations: 0.703 MB / 0.5761 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.111e-05/0.3992, allocations: 37.7 kB / 0.5761 GB, free: 0.668 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.3996, allocations: 492.1 kB / 0.5766 GB, free: 184 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002702/0.3998, allocations: 281.8 kB / 0.5769 GB, free: 15.9 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.4001, allocations: 190.7 kB / 0.5771 GB, free: 15.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002212/0.4004, allocations: 394.5 kB / 0.5774 GB, free: 15.32 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007699/0.4011, allocations: 437.8 kB / 0.5779 GB, free: 14.89 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009645/0.4021, allocations: 0.7242 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.005736/0.4078, allocations: 2.504 MB / 0.581 GB, free: 11.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.4078, allocations: 4 kB / 0.581 GB, free: 11.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002419/0.4103, allocations: 1.313 MB / 0.5823 GB, free: 10.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.4103, allocations: 11.94 kB / 0.5823 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.075e-05/0.4103, allocations: 8 kB / 0.5823 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002665/0.4106, allocations: 85.67 kB / 0.5824 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008643/0.4114, allocations: 228 kB / 0.5826 GB, free: 9.758 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.4127, allocations: 1.334 MB / 0.5839 GB, free: 8.301 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000714/0.4135, allocations: 75.88 kB / 0.584 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-05/0.4135, allocations: 43.94 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.0006343/0.4142, allocations: 432.2 kB / 0.5844 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001947/0.4144, allocations: 91.41 kB / 0.5845 GB, free: 7.668 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.4162, allocations: 0.975 MB / 0.5855 GB, free: 6.676 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.83e-05/0.4162, allocations: 19.92 kB / 0.5855 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/0.4162, allocations: 7.938 kB / 0.5855 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4162, allocations: 0 / 0.5855 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.4203, allocations: 2.082 MB / 0.5875 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.4203, allocations: 0 / 0.5875 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007474/0.421, allocations: 139.8 kB / 0.5877 GB, free: 4.375 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.4212, allocations: 28.88 kB / 0.5877 GB, free: 4.344 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.756e-05/0.4212, allocations: 19.94 kB / 0.5877 GB, free: 4.324 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.4224, allocations: 1.275 MB / 0.589 GB, free: 2.934 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4224, allocations: 4.031 kB / 0.589 GB, free: 2.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.425, allocations: 1.655 MB / 0.5906 GB, free: 1.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004954/0.4255, allocations: 171.4 kB / 0.5908 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.4256, allocations: 16.08 kB / 0.5908 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.4261, allocations: 51.92 kB / 0.5908 GB, free: 1.012 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.4262, allocations: 56.55 kB / 0.5909 GB, free: 0.957 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.787e-05/0.4263, allocations: 19.94 kB / 0.5909 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006804/0.427, allocations: 491 kB / 0.5914 GB, free: 476 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.427, allocations: 3.938 kB / 0.5914 GB, free: 472 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.001004/0.428, allocations: 255.9 kB / 0.5916 GB, free: 216 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.003083/0.431, allocations: 2.246 MB / 0.5938 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.4331, allocations: 1.112 MB / 0.5949 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.4331, allocations: 0 / 0.5949 GB, free: 12.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009284/0.4341, allocations: 0.5881 MB / 0.5955 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001105/0.4352, allocations: 238.3 kB / 0.5957 GB, free: 11.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.4489, allocations: 9.05 MB / 0.6045 GB, free: 2.562 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006987/0.4496, allocations: 0.5518 MB / 0.6051 GB, free: 1.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007788/0.4504, allocations: 258.9 kB / 0.6053 GB, free: 1.723 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005285/0.4509, allocations: 347.3 kB / 0.6056 GB, free: 1.383 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4509, allocations: 0 / 0.6056 GB, free: 1.383 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06098/0.5119, allocations: 22.32 MB / 0.6274 GB, free: 11.35 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.72, allocations: 7.625 kB / 0.6274 GB, free: 11.35 MB / 478.1 MB " [Timeout remaining time 647] (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: 15.584121954161674] Failed to read output from testmodel.py, exit status != 0: 12.866422702092677 12.881101886 12.507570996 Calling exit ...