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.001167/0.001167, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001372/0.001372, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.582/1.582, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.1962/0.1962, allocations: 38.52 MB / 348.7 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="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: 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.002008/0.002008, allocations: 71.89 kB / 487.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1264, allocations: 62.42 MB / 0.5367 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009087/0.1355, allocations: 5.765 MB / 0.5423 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008538/0.144, allocations: 4.522 MB / 0.5467 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005438/0.1445, allocations: 27.75 kB / 0.5467 GB, free: 13.21 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01066/0.1552, allocations: 4.936 MB / 0.5516 GB, free: 8.266 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001372/0.1566, allocations: 434 kB / 0.552 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007558/0.1573, allocations: 283.5 kB / 0.5522 GB, free: 7.562 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002351/0.1597, allocations: 1.727 MB / 0.5539 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000892/0.1606, allocations: 0.6259 MB / 0.5545 GB, free: 5.195 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000742/0.1613, allocations: 494.3 kB / 0.555 GB, free: 4.711 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007139/0.162, allocations: 0.5411 MB / 0.5555 GB, free: 4.168 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1621, allocations: 72 kB / 0.5556 GB, free: 4.098 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.1624, allocations: 143.8 kB / 0.5558 GB, free: 3.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003238/0.1628, allocations: 335.1 kB / 0.5561 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004109/0.1632, allocations: 398.2 kB / 0.5565 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.1643, allocations: 1.035 MB / 0.5575 GB, free: 2.199 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1643, allocations: 0 / 0.5575 GB, free: 2.199 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1643, allocations: 0 / 0.5575 GB, free: 2.199 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.1644, allocations: 0 / 0.5575 GB, free: 2.199 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.001978/0.1663, allocations: 1.047 MB / 0.5585 GB, free: 1.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1664, allocations: 16.02 kB / 0.5585 GB, free: 1.074 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001321/0.1665, allocations: 106.7 kB / 0.5586 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004183/0.1669, allocations: 104.4 kB / 0.5587 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.1681, allocations: 0.6273 MB / 0.5593 GB, free: 196 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-05/0.1681, allocations: 71.02 kB / 0.5594 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.1683, allocations: 75.86 kB / 0.5595 GB, free: 44 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.1695, allocations: 0.806 MB / 0.5602 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.1696, allocations: 4 kB / 0.5602 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.1696, allocations: 24 kB / 0.5603 GB, free: 15.17 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.1698, allocations: 49.28 kB / 0.5603 GB, free: 15.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.1708, allocations: 0.5867 MB / 0.5609 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004263/0.175, allocations: 2.924 MB / 0.5637 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008167/0.1759, allocations: 406.1 kB / 0.5641 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003388/0.1762, allocations: 214.3 kB / 0.5643 GB, free: 10.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.1762, allocations: 4.656 kB / 0.5643 GB, free: 10.87 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005369/0.1768, allocations: 342.3 kB / 0.5647 GB, free: 10.51 MB / 430.1 MB Notification: Performance of pre-optimization done (n=42): time 2.034e-06/0.1768, allocations: 0 / 0.5647 GB, free: 10.51 MB / 430.1 MB Notification: Performance of matching and sorting (n=45): time 0.003702/0.1805, allocations: 2.057 MB / 0.5667 GB, free: 8.301 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.808e-05/0.1806, allocations: 148.3 kB / 0.5668 GB, free: 8.125 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005986/0.1812, allocations: 449.8 kB / 0.5672 GB, free: 7.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.337e-05/0.1812, allocations: 33.7 kB / 0.5673 GB, free: 7.641 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.1815, allocations: 336.6 kB / 0.5676 GB, free: 7.305 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001552/0.1816, allocations: 166.6 kB / 0.5678 GB, free: 7.141 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/0.1818, allocations: 114.3 kB / 0.5679 GB, free: 7.023 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.182, allocations: 366.8 kB / 0.5682 GB, free: 6.656 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.1824, allocations: 229.2 kB / 0.5684 GB, free: 6.434 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.1829, allocations: 397.7 kB / 0.5688 GB, free: 5.977 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002985/0.1859, allocations: 1.328 MB / 0.5701 GB, free: 4.551 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-06/0.1859, allocations: 4 kB / 0.5701 GB, free: 4.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002036/0.1879, allocations: 0.963 MB / 0.5711 GB, free: 3.562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.934e-05/0.188, allocations: 34.12 kB / 0.5711 GB, free: 3.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.188, allocations: 12 kB / 0.5711 GB, free: 3.512 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.189, allocations: 309.4 kB / 0.5714 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.19, allocations: 175.7 kB / 0.5716 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007738/0.1978, allocations: 5.294 MB / 0.5767 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.1982, allocations: 23.98 kB / 0.5768 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.1983, allocations: 24 kB / 0.5768 GB, free: 13.42 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.000502/0.1988, allocations: 303.2 kB / 0.5771 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.496e-05/0.1989, allocations: 59.66 kB / 0.5771 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001317/0.2002, allocations: 0.7976 MB / 0.5779 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.2002, allocations: 4 kB / 0.5779 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2002, allocations: 3.938 kB / 0.5779 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.2002, allocations: 11.98 kB / 0.5779 GB, free: 12.18 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.00266/0.2029, allocations: 1.664 MB / 0.5795 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.2029, allocations: 0 / 0.5795 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.2042, allocations: 191.9 kB / 0.5797 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.2045, allocations: 86.39 kB / 0.5798 GB, free: 10.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/0.2045, allocations: 8 kB / 0.5798 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003612/0.2082, allocations: 4.261 MB / 0.584 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2082, allocations: 4 kB / 0.584 GB, free: 5.406 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001786/0.2099, allocations: 1.12 MB / 0.5851 GB, free: 4.203 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.2102, allocations: 176.7 kB / 0.5852 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.84e-05/0.2103, allocations: 16 kB / 0.5853 GB, free: 3.996 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/0.2106, allocations: 15.98 kB / 0.5853 GB, free: 3.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.2107, allocations: 35.95 kB / 0.5853 GB, free: 3.945 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-05/0.2107, allocations: 12 kB / 0.5853 GB, free: 3.934 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004303/0.2112, allocations: 319.1 kB / 0.5856 GB, free: 3.625 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2112, allocations: 0 / 0.5856 GB, free: 3.625 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007156/0.2119, allocations: 160 kB / 0.5858 GB, free: 3.469 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.001962/0.2139, allocations: 1.691 MB / 0.5874 GB, free: 1.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.2158, allocations: 0.9482 MB / 0.5884 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/0.2158, allocations: 4 kB / 0.5884 GB, free: 0.6914 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009505/0.2167, allocations: 0.6304 MB / 0.589 GB, free: 12 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2437/0.4604, allocations: 128.6 kB / 0.5891 GB, free: 51.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009173/0.4696, allocations: 6.158 MB / 0.5951 GB, free: 49.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.4701, allocations: 0.9746 MB / 0.5961 GB, free: 48.82 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003905/0.4705, allocations: 119.9 kB / 0.5962 GB, free: 48.79 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/0.4708, allocations: 225.2 kB / 0.5964 GB, free: 48.62 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4708, allocations: 4.531 kB / 0.5964 GB, free: 48.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07038/0.5411, allocations: 14.29 MB / 0.6104 GB, free: 44.27 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.5, allocations: 9.109 kB / 0.6104 GB, free: 44.27 MB / 446.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.682010935997823] Failed to read output from testmodel.py, exit status != 0: 13.606187921002856 13.62016172 13.452905439 Calling exit ...