Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.0007488/0.0007488, 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.0008295/0.0008295, allocations: 170 kB / 23.95 MB, free: 0.6094 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.8954/0.8954, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.2133/0.2133, allocations: 29.4 MB / 290.1 MB, free: 2.441 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.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 430.2 MB, free: 13.61 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.788e-05/1.947e-05, allocations: 3.828 kB / 430.2 MB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005579/0.005598, allocations: 5.5 MB / 435.7 MB, free: 8.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004569/0.01017, allocations: 4.093 MB / 439.8 MB, free: 3.961 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003836/0.01055, allocations: 31.81 kB / 439.8 MB, free: 3.93 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1615/0.172, allocations: 5.46 MB / 445.3 MB, free: 45.43 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001041/0.1731, allocations: 450.6 kB / 445.7 MB, free: 45.43 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.1735, allocations: 299.3 kB / 446 MB, free: 45.43 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.1747, allocations: 1.827 MB / 447.9 MB, free: 45.25 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005005/0.1752, allocations: 0.6179 MB / 448.5 MB, free: 45.2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004641/0.1757, allocations: 0.6447 MB / 449.1 MB, free: 45.14 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003579/0.1761, allocations: 474.2 kB / 449.6 MB, free: 45.11 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.652e-05/0.1761, allocations: 70.84 kB / 449.6 MB, free: 45.11 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.1763, allocations: 141.5 kB / 449.8 MB, free: 45.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.1765, allocations: 350 kB / 450.1 MB, free: 45.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001535/0.1766, allocations: 275.2 kB / 450.4 MB, free: 45.04 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006432/0.1773, allocations: 1.052 MB / 451.4 MB, free: 44.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1773, allocations: 0.6562 kB / 451.4 MB, free: 44.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1773, allocations: 3.812 kB / 451.5 MB, free: 44.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1773, allocations: 0 / 451.5 MB, free: 44.96 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001067/0.1784, allocations: 0.9654 MB / 452.4 MB, free: 44.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.1784, allocations: 10.64 kB / 452.4 MB, free: 44.43 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.919e-05/0.1785, allocations: 105.4 kB / 452.5 MB, free: 44.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.1787, allocations: 108.7 kB / 452.6 MB, free: 44.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006089/0.1793, allocations: 0.5535 MB / 453.2 MB, free: 44.11 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.167e-05/0.1794, allocations: 84.19 kB / 453.3 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.499e-05/0.1795, allocations: 61.42 kB / 453.3 MB, free: 44.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000672/0.1801, allocations: 0.84 MB / 454.2 MB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.1802, allocations: 7.406 kB / 454.2 MB, free: 43.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.587e-05/0.1802, allocations: 23.03 kB / 454.2 MB, free: 43.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.277e-05/0.1803, allocations: 61.28 kB / 454.3 MB, free: 43.61 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005238/0.1808, allocations: 0.611 MB / 454.9 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1829, allocations: 2.68 MB / 457.6 MB, free: 41.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004757/0.1833, allocations: 436.6 kB / 458 MB, free: 41.47 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.1835, allocations: 236.3 kB / 458.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.1835, allocations: 12 kB / 458.2 MB, free: 41.35 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.1838, allocations: 363.2 kB / 458.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.1838, allocations: 0 / 458.6 MB, free: 41.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.001779/0.1856, allocations: 1.738 MB / 460.3 MB, free: 40.17 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.1856, allocations: 145.3 kB / 460.5 MB, free: 40.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.1859, allocations: 456 kB / 460.9 MB, free: 39.79 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.1859, allocations: 32.77 kB / 460.9 MB, free: 39.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.186, allocations: 338.2 kB / 461.3 MB, free: 39.49 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.669e-05/0.1861, allocations: 170.1 kB / 461.4 MB, free: 39.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.84e-05/0.1862, allocations: 112.5 kB / 461.5 MB, free: 39.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.855e-05/0.1863, allocations: 368.9 kB / 461.9 MB, free: 38.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.1865, allocations: 255 kB / 462.1 MB, free: 38.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.1867, allocations: 419.9 kB / 462.6 MB, free: 38.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.1881, allocations: 1.26 MB / 463.8 MB, free: 37.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1881, allocations: 0 / 463.8 MB, free: 37.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009112/0.189, allocations: 0.9899 MB / 464.8 MB, free: 37.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.911e-05/0.189, allocations: 32.27 kB / 464.8 MB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.189, allocations: 6.531 kB / 464.8 MB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004788/0.1895, allocations: 303.3 kB / 465.1 MB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004371/0.1899, allocations: 176.8 kB / 465.3 MB, free: 37.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.1932, allocations: 5.041 MB / 470.4 MB, free: 33.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.1934, allocations: 24.28 kB / 470.4 MB, free: 33.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.893e-05/0.1934, allocations: 30.28 kB / 470.4 MB, free: 33.75 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: $DER.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0002571/0.1937, allocations: 299.9 kB / 470.7 MB, free: 33.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.059e-05/0.1937, allocations: 54.75 kB / 470.8 MB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007211/0.1944, allocations: 0.6901 MB / 471.4 MB, free: 33.15 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1945, allocations: 7.156 kB / 471.5 MB, free: 33.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1945, allocations: 3.031 kB / 471.5 MB, free: 33.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1945, allocations: 0 / 471.5 MB, free: 33.15 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.1957, allocations: 1.403 MB / 472.9 MB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1957, allocations: 3.125 kB / 472.9 MB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/0.1963, allocations: 192.2 kB / 473 MB, free: 32.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001169/0.1964, allocations: 76.25 kB / 473.1 MB, free: 32.35 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.1965, allocations: 11.38 kB / 473.1 MB, free: 32.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.1976, allocations: 3.947 MB / 477.1 MB, free: 28.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.1976, allocations: 6.406 kB / 477.1 MB, free: 28.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007822/0.1984, allocations: 1.024 MB / 478.1 MB, free: 27.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.1985, allocations: 91.78 kB / 478.2 MB, free: 27.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.06e-05/0.1986, allocations: 21.48 kB / 478.2 MB, free: 27.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.1987, allocations: 16.22 kB / 478.2 MB, free: 27.84 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.234e-05/0.1988, allocations: 37.44 kB / 478.3 MB, free: 27.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.1988, allocations: 26.12 kB / 478.3 MB, free: 27.83 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001999/0.199, allocations: 315 kB / 478.6 MB, free: 27.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.199, allocations: 0 / 478.6 MB, free: 27.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004744/0.1995, allocations: 164.7 kB / 478.8 MB, free: 27.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (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.000904/0.2004, allocations: 1.583 MB / 480.4 MB, free: 26.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009746/0.2014, allocations: 1.014 MB / 481.4 MB, free: 25.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2014, allocations: 0.8125 kB / 481.4 MB, free: 25.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.2017, allocations: 0.6615 MB / 482 MB, free: 25.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.2022, allocations: 127.5 kB / 482.2 MB, free: 25.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005076/0.2072, allocations: 6.14 MB / 488.3 MB, free: 21.88 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.2075, allocations: 380.5 kB / 488.7 MB, free: 21.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002358/0.2078, allocations: 114 kB / 488.8 MB, free: 21.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001839/0.2079, allocations: 222.4 kB / 489 MB, free: 21.55 MB / 410.7 MB Notification: Performance of SimCode: time 8.32e-07/0.2079, allocations: 0 / 489 MB, free: 21.55 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03735/0.2453, allocations: 15.05 MB / 0.4922 GB, free: 19.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.044/8.289, allocations: 12.44 kB / 0.4922 GB, free: 19.45 MB / 410.7 MB " [Timeout remaining time 652] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.147920587100089] Failed to read output from testmodel.py, exit status != 0: 8.385853290557861 8.395547393 8.21666093 Calling exit ...