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.001434/0.001434, allocations: 114.8 kB / 18.49 MB, free: 4.559 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.001603/0.001603, allocations: 217.4 kB / 21.46 MB, free: 1.605 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.56/1.56, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.1896/0.1896, allocations: 38.51 MB / 349.4 MB, free: 2.602 MB / 270.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.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="cs",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.002083/0.002083, allocations: 64.38 kB / 487.8 MB, free: 32.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1132, allocations: 62.42 MB / 0.5374 GB, free: 9.641 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.01049/0.1237, allocations: 5.773 MB / 0.543 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008873/0.1326, allocations: 4.522 MB / 0.5474 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006629/0.1332, allocations: 23.81 kB / 0.5474 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01051/0.1437, allocations: 4.94 MB / 0.5523 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001276/0.145, allocations: 438 kB / 0.5527 GB, free: 9.902 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008421/0.1459, allocations: 279.5 kB / 0.5529 GB, free: 9.629 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002676/0.1485, allocations: 1.731 MB / 0.5546 GB, free: 7.895 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001058/0.1496, allocations: 0.6259 MB / 0.5552 GB, free: 7.258 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008718/0.1505, allocations: 490.4 kB / 0.5557 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009346/0.1514, allocations: 0.5372 MB / 0.5562 GB, free: 6.238 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001745/0.1516, allocations: 83.98 kB / 0.5563 GB, free: 6.156 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003931/0.152, allocations: 147.8 kB / 0.5565 GB, free: 6.012 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003857/0.1524, allocations: 327.1 kB / 0.5568 GB, free: 5.691 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005858/0.1529, allocations: 398.2 kB / 0.5571 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001472/0.1544, allocations: 1.039 MB / 0.5582 GB, free: 4.258 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1544, allocations: 0 / 0.5582 GB, free: 4.258 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1544, allocations: 0 / 0.5582 GB, free: 4.258 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.016e-05/0.1545, allocations: 0 / 0.5582 GB, free: 4.258 MB / 414.1 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.00257/0.157, allocations: 1.043 MB / 0.5592 GB, free: 3.152 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.1571, allocations: 12.03 kB / 0.5592 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.284e-05/0.1571, allocations: 17.5 kB / 0.5592 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001747/0.1573, allocations: 106.7 kB / 0.5593 GB, free: 3.012 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004945/0.1578, allocations: 108.4 kB / 0.5594 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001345/0.1591, allocations: 0.6194 MB / 0.56 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.1592, allocations: 79.02 kB / 0.5601 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.1594, allocations: 67.92 kB / 0.5602 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.161, allocations: 0.8021 MB / 0.5609 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.324e-05/0.161, allocations: 7.938 kB / 0.561 GB, free: 1.246 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.365e-05/0.1611, allocations: 23.98 kB / 0.561 GB, free: 1.223 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001859/0.1613, allocations: 53.27 kB / 0.561 GB, free: 1.172 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001254/0.1626, allocations: 0.5945 MB / 0.5616 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004985/0.1675, allocations: 2.912 MB / 0.5645 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009096/0.1685, allocations: 402.1 kB / 0.5648 GB, free: 13.14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003541/0.1688, allocations: 210.3 kB / 0.565 GB, free: 12.93 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.073e-05/0.1688, allocations: 16.52 kB / 0.5651 GB, free: 12.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005642/0.1694, allocations: 346.2 kB / 0.5654 GB, free: 12.55 MB / 430.1 MB Notification: Performance of pre-optimization done (n=42): time 2.405e-06/0.1694, allocations: 0 / 0.5654 GB, free: 12.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.003613/0.173, allocations: 2.057 MB / 0.5674 GB, free: 10.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.1731, allocations: 144.4 kB / 0.5675 GB, free: 10.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005985/0.1737, allocations: 445.9 kB / 0.568 GB, free: 9.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/0.1738, allocations: 37.7 kB / 0.568 GB, free: 9.688 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/0.1741, allocations: 332.6 kB / 0.5683 GB, free: 9.355 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.1742, allocations: 170.6 kB / 0.5685 GB, free: 9.188 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.1744, allocations: 110.3 kB / 0.5686 GB, free: 9.074 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1746, allocations: 366.8 kB / 0.5689 GB, free: 8.707 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003917/0.175, allocations: 233.2 kB / 0.5691 GB, free: 8.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/0.1755, allocations: 393.7 kB / 0.5695 GB, free: 8.027 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003038/0.1786, allocations: 1.335 MB / 0.5708 GB, free: 6.594 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.1786, allocations: 0 / 0.5708 GB, free: 6.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002006/0.1806, allocations: 0.9633 MB / 0.5718 GB, free: 5.609 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.549e-05/0.1806, allocations: 37.8 kB / 0.5718 GB, free: 5.566 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.1806, allocations: 8.047 kB / 0.5718 GB, free: 5.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.1817, allocations: 309.3 kB / 0.5721 GB, free: 5.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.1827, allocations: 179.7 kB / 0.5723 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007679/0.1904, allocations: 5.293 MB / 0.5774 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004804/0.1909, allocations: 27.92 kB / 0.5775 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.191, allocations: 20 kB / 0.5775 GB, free: 15.47 MB / 446.1 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.0005072/0.1915, allocations: 307.3 kB / 0.5778 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.1916, allocations: 55.61 kB / 0.5778 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.193, allocations: 0.8015 MB / 0.5786 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.193, allocations: 4 kB / 0.5786 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.193, allocations: 8 kB / 0.5786 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.193, allocations: 0 / 0.5786 GB, free: 14.23 MB / 446.1 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.002639/0.1956, allocations: 1.664 MB / 0.5803 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1956, allocations: 0 / 0.5803 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.197, allocations: 191.9 kB / 0.5804 GB, free: 12.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002484/0.1972, allocations: 78.45 kB / 0.5805 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-05/0.1973, allocations: 19.98 kB / 0.5805 GB, free: 12.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003467/0.2008, allocations: 4.257 MB / 0.5847 GB, free: 7.461 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.2008, allocations: 3.938 kB / 0.5847 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001733/0.2025, allocations: 1.124 MB / 0.5858 GB, free: 6.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.2028, allocations: 172.7 kB / 0.586 GB, free: 6.062 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.704e-05/0.2029, allocations: 15.98 kB / 0.586 GB, free: 6.047 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.2032, allocations: 15.98 kB / 0.586 GB, free: 6.031 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.2033, allocations: 35.97 kB / 0.586 GB, free: 5.996 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.836e-05/0.2033, allocations: 15.98 kB / 0.586 GB, free: 5.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004384/0.2038, allocations: 311.1 kB / 0.5863 GB, free: 5.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2038, allocations: 0 / 0.5863 GB, free: 5.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000808/0.2046, allocations: 168 kB / 0.5865 GB, free: 5.516 MB / 446.1 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.001965/0.2065, allocations: 1.695 MB / 0.5881 GB, free: 3.727 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.2086, allocations: 0.9444 MB / 0.5891 GB, free: 2.746 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2086, allocations: 0.8125 kB / 0.5891 GB, free: 2.746 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.2096, allocations: 0.6374 MB / 0.5897 GB, free: 2.059 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007342/0.2103, allocations: 132.5 kB / 0.5898 GB, free: 1.938 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009796/0.2201, allocations: 6.152 MB / 0.5958 GB, free: 11.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008609/0.221, allocations: 0.98 MB / 0.5968 GB, free: 10.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003713/0.2213, allocations: 116.7 kB / 0.5969 GB, free: 10.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.2217, allocations: 219.4 kB / 0.5971 GB, free: 10.19 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2217, allocations: 0 / 0.5971 GB, free: 10.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3103/0.532, allocations: 14.33 MB / 0.6111 GB, free: 65.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/13.83, allocations: 3.969 kB / 0.6111 GB, free: 65.88 MB / 462.1 MB " [Timeout remaining time 646] (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: 16.964430616993923] Failed to read output from testmodel.py, exit status != 0: 13.99499337899033 14.020314231 13.861662183 Calling exit ...