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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 103.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001309, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1824/0.1824, allocations: 38.03 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 61.14 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09104/0.09218, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009705/0.1019, allocations: 5.717 MB / 462.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008297/0.1103, allocations: 4.436 MB / 467.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005701/0.1109, allocations: 19.94 kB / 467.1 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01289/0.1238, allocations: 4.905 MB / 472 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.1251, allocations: 430 kB / 472.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008614/0.126, allocations: 275.5 kB / 472.7 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002843/0.1288, allocations: 1.723 MB / 474.4 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001429/0.1303, allocations: 0.7234 MB / 475.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.1313, allocations: 478.4 kB / 475.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009642/0.1323, allocations: 0.4982 MB / 476.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001798/0.1325, allocations: 72 kB / 476.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000368/0.1328, allocations: 135.9 kB / 476.3 MB, free: 4.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003593/0.1332, allocations: 331.2 kB / 476.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005256/0.1337, allocations: 398.2 kB / 477.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.135, allocations: 1.016 MB / 478.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.135, allocations: 0 / 478.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.135, allocations: 0 / 478.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.526e-05/0.1351, allocations: 4 kB / 478.1 MB, free: 2.762 MB / 350.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.002292/0.1374, allocations: 1.025 MB / 479.1 MB, free: 1.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.1374, allocations: 15.83 kB / 479.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.1376, allocations: 110.7 kB / 479.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004905/0.1381, allocations: 104 kB / 479.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.1393, allocations: 0.6074 MB / 479.9 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.1394, allocations: 79.02 kB / 480 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.1395, allocations: 56 kB / 480.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.1408, allocations: 0.806 MB / 480.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.1409, allocations: 15.84 kB / 480.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.829e-05/0.141, allocations: 20 kB / 480.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.1411, allocations: 53.28 kB / 481 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009552/0.1421, allocations: 0.5867 MB / 481.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003992/0.1461, allocations: 2.943 MB / 484.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000819/0.1469, allocations: 422.2 kB / 484.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003423/0.1473, allocations: 230.6 kB / 485.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.201e-05/0.1473, allocations: 4 kB / 485.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00045/0.1477, allocations: 338.5 kB / 485.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.214e-06/0.1478, allocations: 4 kB / 485.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003083/0.1509, allocations: 2.039 MB / 487.5 MB, free: 8.871 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.737e-05/0.1509, allocations: 144.4 kB / 487.6 MB, free: 8.699 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004516/0.1514, allocations: 445.8 kB / 488.1 MB, free: 8.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.1514, allocations: 37.7 kB / 488.1 MB, free: 8.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.1517, allocations: 331.8 kB / 488.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.1518, allocations: 165.7 kB / 488.6 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/0.152, allocations: 114.2 kB / 488.7 MB, free: 7.598 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.1521, allocations: 366.8 kB / 489.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003399/0.1525, allocations: 225.2 kB / 489.3 MB, free: 7.012 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.1529, allocations: 397.7 kB / 489.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002578/0.1555, allocations: 1.335 MB / 491 MB, free: 5.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.1555, allocations: 0 / 491 MB, free: 5.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001671/0.1572, allocations: 0.9746 MB / 492 MB, free: 4.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.1572, allocations: 33.7 kB / 492 MB, free: 4.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.1573, allocations: 8 kB / 492 MB, free: 4.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008592/0.1581, allocations: 308.9 kB / 492.3 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009693/0.1591, allocations: 175.7 kB / 492.5 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006041/0.1652, allocations: 5.297 MB / 497.8 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.1655, allocations: 23.98 kB / 497.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.602e-05/0.1656, allocations: 24 kB / 497.8 MB, free: 13.99 MB / 382.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.0003607/0.1659, allocations: 307.2 kB / 498.1 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.371e-05/0.166, allocations: 59.34 kB / 498.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.1671, allocations: 0.8015 MB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.1671, allocations: 4 kB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1672, allocations: 4 kB / 499 MB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.1672, allocations: 3.984 kB / 499 MB, free: 12.74 MB / 382.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.002142/0.1693, allocations: 1.656 MB / 0.4889 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.1693, allocations: 3.938 kB / 0.4889 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001282/0.1706, allocations: 199.8 kB / 0.4891 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002113/0.1708, allocations: 82.45 kB / 0.4892 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.1709, allocations: 16 kB / 0.4892 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002915/0.1738, allocations: 4.257 MB / 0.4934 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1738, allocations: 3.938 kB / 0.4934 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.1752, allocations: 1.13 MB / 0.4945 GB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.1755, allocations: 172.3 kB / 0.4947 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.676e-05/0.1755, allocations: 16 kB / 0.4947 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.1758, allocations: 15.98 kB / 0.4947 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.473e-05/0.1759, allocations: 39.95 kB / 0.4947 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.1759, allocations: 12 kB / 0.4947 GB, free: 4.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003639/0.1763, allocations: 319 kB / 0.495 GB, free: 4.176 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1763, allocations: 0 / 0.495 GB, free: 4.176 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006459/0.177, allocations: 168 kB / 0.4952 GB, free: 4.012 MB / 382.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.001681/0.1787, allocations: 1.671 MB / 0.4968 GB, free: 2.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00194/0.1806, allocations: 1.042 MB / 0.4978 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.1806, allocations: 0 / 0.4978 GB, free: 1.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007556/0.1814, allocations: 0.6524 MB / 0.4985 GB, free: 472 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.1821, allocations: 128.5 kB / 0.4986 GB, free: 348 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008728/0.1908, allocations: 6.231 MB / 0.5047 GB, free: 9.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006724/0.1915, allocations: 0.9877 MB / 0.5057 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004062/0.1919, allocations: 112.7 kB / 0.5058 GB, free: 8.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003109/0.1923, allocations: 219.4 kB / 0.506 GB, free: 8.52 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1923, allocations: 0 / 0.506 GB, free: 8.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2263/0.4186, allocations: 13.93 MB / 0.5196 GB, free: 72.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.72, allocations: 8.062 kB / 0.5196 GB, free: 72.33 MB / 398.1 MB (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 --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)