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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.0008744/0.000874, allocations: 90.08 kB / 16.31 MB, free: 6.457 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.0009721/0.0009722, allocations: 180.3 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 223.4 MB, free: 5.266 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3084/0.3084, allocations: 38.04 MB / 309.7 MB, free: 9.25 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005235/0.0005235, allocations: 20 kB / 376.6 MB, free: 15.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1053, allocations: 56.33 MB / 433 MB, free: 6.715 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006213/0.1115, allocations: 6.01 MB / 439 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006058/0.1176, allocations: 4.491 MB / 443.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004636/0.1181, allocations: 35.75 kB / 443.5 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007381/0.1255, allocations: 4.387 MB / 447.9 MB, free: 7.746 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001174/0.1267, allocations: 485.7 kB / 448.4 MB, free: 7.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006406/0.1273, allocations: 243.6 kB / 448.6 MB, free: 7.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002282/0.1296, allocations: 1.953 MB / 450.5 MB, free: 5.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.1309, allocations: 0.7827 MB / 451.3 MB, free: 4.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005969/0.1315, allocations: 394.5 kB / 451.7 MB, free: 3.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006364/0.1322, allocations: 486.3 kB / 452.2 MB, free: 3.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.395e-05/0.1322, allocations: 32 kB / 452.2 MB, free: 3.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.1325, allocations: 79.88 kB / 452.3 MB, free: 3.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002928/0.1328, allocations: 283.2 kB / 452.6 MB, free: 3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.1329, allocations: 165.3 kB / 452.7 MB, free: 2.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006873/0.1336, allocations: 0.7948 MB / 453.5 MB, free: 2.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1336, allocations: 0 / 453.5 MB, free: 2.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1337, allocations: 4 kB / 453.5 MB, free: 2.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.1337, allocations: 0 / 453.5 MB, free: 2.031 MB / 382.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.001467/0.1351, allocations: 0.9036 MB / 454.4 MB, free: 1.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1352, allocations: 12.03 kB / 454.4 MB, free: 1.055 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001209/0.1353, allocations: 106.5 kB / 454.6 MB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003779/0.1357, allocations: 99.03 kB / 454.6 MB, free: 0.8438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009863/0.1367, allocations: 0.5798 MB / 455.2 MB, free: 228 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.814e-05/0.1368, allocations: 79 kB / 455.3 MB, free: 144 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.845e-05/0.1369, allocations: 67.89 kB / 455.4 MB, free: 76 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1935/0.3305, allocations: 0.7988 MB / 456.2 MB, free: 52.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.156e-05/0.3305, allocations: 5.891 kB / 456.2 MB, free: 52.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.748e-05/0.3306, allocations: 24.28 kB / 456.2 MB, free: 52.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3307, allocations: 47.09 kB / 456.2 MB, free: 52.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007894/0.3315, allocations: 0.5833 MB / 456.8 MB, free: 52.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003229/0.3348, allocations: 2.949 MB / 459.8 MB, free: 51.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/0.3355, allocations: 424.8 kB / 460.2 MB, free: 51.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/0.3358, allocations: 222.7 kB / 460.4 MB, free: 51.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.3358, allocations: 10.42 kB / 460.4 MB, free: 51.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004462/0.3363, allocations: 342.1 kB / 460.8 MB, free: 51.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 2.716e-06/0.3363, allocations: 0.75 kB / 460.8 MB, free: 51.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=45): time 0.00281/0.3391, allocations: 2.053 MB / 462.8 MB, free: 50.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/0.3392, allocations: 143.3 kB / 462.9 MB, free: 50.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005264/0.3397, allocations: 442.3 kB / 463.4 MB, free: 49.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.3398, allocations: 38.86 kB / 463.4 MB, free: 49.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.34, allocations: 327.5 kB / 463.7 MB, free: 49.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.3401, allocations: 159.3 kB / 463.9 MB, free: 49.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.72e-05/0.3402, allocations: 13 kB / 463.9 MB, free: 49.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3403, allocations: 362 kB / 464.3 MB, free: 49.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003306/0.3406, allocations: 234.7 kB / 464.5 MB, free: 49.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.341, allocations: 388 kB / 464.9 MB, free: 49.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.3426, allocations: 0.7544 MB / 465.6 MB, free: 48.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3427, allocations: 0 / 465.6 MB, free: 48.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001407/0.3441, allocations: 0.9626 MB / 466.6 MB, free: 48.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.966e-05/0.3441, allocations: 38.84 kB / 466.6 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3441, allocations: 3.312 kB / 466.6 MB, free: 48.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007359/0.3449, allocations: 312.3 kB / 466.9 MB, free: 48.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007548/0.3456, allocations: 178.5 kB / 467.1 MB, free: 48.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00462/0.3503, allocations: 4.855 MB / 472 MB, free: 44.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.3506, allocations: 29.53 kB / 472 MB, free: 44.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.3506, allocations: 28.23 kB / 472 MB, free: 44.59 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 sytem: $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,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003161/0.351, allocations: 297.3 kB / 472.3 MB, free: 44.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.091e-05/0.351, allocations: 47.78 kB / 472.4 MB, free: 44.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009247/0.352, allocations: 0.8167 MB / 473.2 MB, free: 43.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.352, allocations: 6.031 kB / 473.2 MB, free: 43.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.352, allocations: 0 / 473.2 MB, free: 43.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.352, allocations: 6.734 kB / 473.2 MB, free: 43.83 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.00183/0.3538, allocations: 1.661 MB / 474.8 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3538, allocations: 4.094 kB / 474.8 MB, free: 42.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.3549, allocations: 193.6 kB / 475 MB, free: 42.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001705/0.355, allocations: 72.09 kB / 475.1 MB, free: 42.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-05/0.3551, allocations: 17.72 kB / 475.1 MB, free: 42.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/0.3568, allocations: 3.955 MB / 479.1 MB, free: 38.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3568, allocations: 3.938 kB / 479.1 MB, free: 38.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.3579, allocations: 1.125 MB / 480.2 MB, free: 38.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001673/0.3581, allocations: 168.5 kB / 480.4 MB, free: 37.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.652e-05/0.3582, allocations: 21.78 kB / 480.4 MB, free: 37.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.3584, allocations: 20.81 kB / 480.4 MB, free: 37.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.15e-05/0.3585, allocations: 29.08 kB / 480.4 MB, free: 37.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/0.3585, allocations: 23.8 kB / 480.5 MB, free: 37.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002798/0.3588, allocations: 311.1 kB / 480.8 MB, free: 37.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3588, allocations: 0 / 480.8 MB, free: 37.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006541/0.3595, allocations: 161.4 kB / 480.9 MB, free: 37.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001257/0.3608, allocations: 1.674 MB / 482.6 MB, free: 36.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.3622, allocations: 0.9699 MB / 483.6 MB, free: 35.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3622, allocations: 4.062 kB / 483.6 MB, free: 35.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000592/0.3628, allocations: 0.6536 MB / 484.2 MB, free: 35.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006427/0.3634, allocations: 129.6 kB / 484.4 MB, free: 35.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005422/0.3689, allocations: 4.513 MB / 488.9 MB, free: 32.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.3693, allocations: 0.9737 MB / 489.8 MB, free: 32.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000355/0.3696, allocations: 117.7 kB / 490 MB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.3699, allocations: 221 kB / 490.2 MB, free: 32.01 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3699, allocations: 7.531 kB / 490.2 MB, free: 32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0292/0.3991, allocations: 13.22 MB / 0.4916 GB, free: 30.89 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002621/0.3994, allocations: 208.7 kB / 0.4918 GB, free: 30.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.152/2.551, allocations: 0 / 0.4918 GB, free: 30.64 MB / 382.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/linux/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) Environment - environmentSimulation: