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.0007858/0.0007858, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008467/0.0008467, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9251/0.9251, allocations: 177.1 MB / 204.3 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.2177/0.2177, allocations: 29.41 MB / 290.1 MB, free: 2.457 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.449e-05/1.559e-05, allocations: 6.219 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.005774/0.00579, allocations: 6.75 MB / 437 MB, free: 6.816 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.008718, allocations: 2.715 MB / 439.7 MB, free: 4.094 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00029/0.009008, allocations: 35.75 kB / 439.7 MB, free: 4.059 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007875/0.009796, allocations: 365.7 kB / 440.1 MB, free: 3.699 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001631/0.01143, allocations: 0.8199 MB / 440.9 MB, free: 2.875 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006517/0.01208, allocations: 335.3 kB / 441.2 MB, free: 2.547 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001367/0.01345, allocations: 1.6 MB / 442.8 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1896/0.2031, allocations: 1.159 MB / 444 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00144/0.2045, allocations: 0.9239 MB / 444.9 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.2056, allocations: 0.6813 MB / 445.6 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002688/0.2058, allocations: 139.8 kB / 445.7 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.2072, allocations: 0.7089 MB / 446.4 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003754/0.2075, allocations: 0.5215 MB / 446.9 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003787/0.2079, allocations: 472.3 kB / 447.4 MB, free: 43.95 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002003/0.2099, allocations: 2.189 MB / 449.6 MB, free: 43.87 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2099, allocations: 0 / 449.6 MB, free: 43.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2099, allocations: 0 / 449.6 MB, free: 43.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.728e-05/0.21, allocations: 0 / 449.6 MB, free: 43.87 MB / 410.7 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.002373/0.2123, allocations: 1.502 MB / 451.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.2124, allocations: 13.52 kB / 451.1 MB, free: 43.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001502/0.2125, allocations: 166.6 kB / 451.3 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000466/0.213, allocations: 188.6 kB / 451.5 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009494/0.2139, allocations: 0.773 MB / 452.2 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.2141, allocations: 389.3 kB / 452.6 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.2142, allocations: 104.3 kB / 452.7 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.2157, allocations: 1.473 MB / 454.2 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.953e-05/0.2157, allocations: 10.56 kB / 454.2 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.917e-05/0.2158, allocations: 44.06 kB / 454.2 MB, free: 42.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.348e-05/0.2158, allocations: 77.52 kB / 454.3 MB, free: 42.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.2171, allocations: 1.263 MB / 455.6 MB, free: 41.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.2211, allocations: 4.752 MB / 460.3 MB, free: 38.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008697/0.222, allocations: 0.805 MB / 461.1 MB, free: 38.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004574/0.2225, allocations: 467.7 kB / 461.6 MB, free: 38.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-05/0.2225, allocations: 7.031 kB / 461.6 MB, free: 38.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.2225, allocations: 45.41 kB / 461.6 MB, free: 38.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 2.494e-06/0.2225, allocations: 4 kB / 461.6 MB, free: 38.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.003721/0.2263, allocations: 2.958 MB / 464.6 MB, free: 36.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.2263, allocations: 109.8 kB / 464.7 MB, free: 36.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00057/0.2269, allocations: 0.7077 MB / 465.4 MB, free: 36.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.398e-05/0.2269, allocations: 36.89 kB / 465.5 MB, free: 36.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.2271, allocations: 489.1 kB / 465.9 MB, free: 35.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.2272, allocations: 278.1 kB / 466.2 MB, free: 35.74 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.2273, allocations: 187.2 kB / 466.4 MB, free: 35.64 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.48e-05/0.2274, allocations: 389.2 kB / 466.8 MB, free: 35.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003959/0.2278, allocations: 444.8 kB / 467.2 MB, free: 35.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.2282, allocations: 0.7179 MB / 467.9 MB, free: 34.63 MB / 410.7 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.002955/0.2312, allocations: 2.508 MB / 470.4 MB, free: 33.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2312, allocations: 3.031 kB / 470.4 MB, free: 33.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.001428/0.2326, allocations: 1.318 MB / 471.7 MB, free: 33.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.2327, allocations: 9.094 kB / 471.8 MB, free: 33.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.989e-05/0.2327, allocations: 11.05 kB / 471.8 MB, free: 33.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002225/0.2329, allocations: 85.19 kB / 471.8 MB, free: 32.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004781/0.2334, allocations: 221.4 kB / 472.1 MB, free: 32.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007808/0.2342, allocations: 1.347 MB / 473.4 MB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005412/0.2347, allocations: 78.23 kB / 473.5 MB, free: 31.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-05/0.2348, allocations: 48.16 kB / 473.5 MB, free: 31.64 MB / 410.7 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.0006113/0.2354, allocations: 414.9 kB / 473.9 MB, free: 31.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.2355, allocations: 86.05 kB / 474 MB, free: 31.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.2365, allocations: 0.9815 MB / 475 MB, free: 30.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.097e-05/0.2365, allocations: 15.05 kB / 475 MB, free: 30.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2365, allocations: 0 / 475 MB, free: 30.91 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.2366, allocations: 7.359 kB / 475 MB, free: 30.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002227/0.2388, allocations: 2.091 MB / 477.1 MB, free: 29.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.2388, allocations: 3.219 kB / 477.1 MB, free: 29.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/0.2392, allocations: 141.4 kB / 477.3 MB, free: 29.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.817e-05/0.2392, allocations: 21.14 kB / 477.3 MB, free: 29.95 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.115e-05/0.2393, allocations: 21.91 kB / 477.3 MB, free: 29.93 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005685/0.2399, allocations: 1.272 MB / 478.6 MB, free: 28.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2399, allocations: 3.062 kB / 478.6 MB, free: 28.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.2412, allocations: 1.656 MB / 480.2 MB, free: 27.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002553/0.2415, allocations: 175.3 kB / 480.4 MB, free: 27.76 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.676e-05/0.2416, allocations: 19 kB / 480.4 MB, free: 27.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.2418, allocations: 45.34 kB / 480.5 MB, free: 27.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.2419, allocations: 64.73 kB / 480.5 MB, free: 27.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.242, allocations: 24.95 kB / 480.6 MB, free: 27.72 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005395/0.2425, allocations: 487.2 kB / 481 MB, free: 27.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2425, allocations: 0 / 481 MB, free: 27.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001043/0.2436, allocations: 255 kB / 481.3 MB, free: 27.48 MB / 410.7 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.002089/0.2456, allocations: 2.26 MB / 483.5 MB, free: 26.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.2475, allocations: 1.109 MB / 484.7 MB, free: 25.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.2475, allocations: 0 / 484.7 MB, free: 25.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.2482, allocations: 0.5831 MB / 485.2 MB, free: 25.42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009015/0.2491, allocations: 221.7 kB / 485.4 MB, free: 25.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/0.2594, allocations: 8.896 MB / 494.3 MB, free: 20.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/0.26, allocations: 0.5578 MB / 494.9 MB, free: 20.41 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006834/0.2607, allocations: 259 kB / 495.2 MB, free: 20.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003554/0.261, allocations: 345.6 kB / 495.5 MB, free: 20.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.565e-06/0.261, allocations: 0 / 495.5 MB, free: 20.12 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04923/0.3103, allocations: 22.44 MB / 0.5058 GB, free: 9.375 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.851, allocations: 0 / 0.5058 GB, free: 9.375 MB / 410.7 MB " [Timeout remaining time 652] (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: 10.281762749888003] Failed to read output from testmodel.py, exit status != 0: 7.94391109701246 7.950498393 7.738756744 Calling exit ...