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.001157/0.001157, allocations: 94.17 kB / 16.3 MB, free: 5.996 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.001321/0.001321, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.427/1.427, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1701/0.1701, allocations: 38.04 MB / 309.7 MB, free: 6.133 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.0004813/0.0004813, allocations: 16 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2291, allocations: 56.33 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.0048/0.234, allocations: 5.729 MB / 438.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004924/0.2389, allocations: 4.441 MB / 443.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004415/0.2394, allocations: 39.75 kB / 443.1 MB, free: 8.578 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003456/0.2428, allocations: 1.686 MB / 444.8 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007353/0.2436, allocations: 366.9 kB / 445.2 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005499/0.2442, allocations: 243.5 kB / 445.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000444/0.2446, allocations: 0.5383 MB / 445.9 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007963/0.2454, allocations: 0.7905 MB / 446.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003192/0.2457, allocations: 330.9 kB / 447.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003799/0.2461, allocations: 326.8 kB / 447.4 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.712e-05/0.2462, allocations: 32 kB / 447.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.2464, allocations: 67.95 kB / 447.5 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.2466, allocations: 259.3 kB / 447.7 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.2468, allocations: 165.3 kB / 447.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004967/0.2473, allocations: 0.8026 MB / 448.7 MB, free: 2.957 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.365e-06/0.2473, allocations: 3.938 kB / 448.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2473, allocations: 0 / 448.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.035e-05/0.2473, allocations: 0 / 448.7 MB, free: 2.953 MB / 318.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.001302/0.2486, allocations: 0.8958 MB / 449.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.2486, allocations: 8.031 kB / 449.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.457e-05/0.2487, allocations: 106.5 kB / 449.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003619/0.2491, allocations: 107.1 kB / 449.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009322/0.2501, allocations: 0.5876 MB / 450.4 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.342e-05/0.2501, allocations: 82.98 kB / 450.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.965e-05/0.2502, allocations: 59.91 kB / 450.5 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009416/0.2512, allocations: 0.7982 MB / 451.3 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.2512, allocations: 3.938 kB / 451.3 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.2513, allocations: 27.98 kB / 451.4 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/0.2514, allocations: 53.23 kB / 451.4 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009027/0.2523, allocations: 0.579 MB / 452 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00373/0.2561, allocations: 2.935 MB / 454.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007597/0.2568, allocations: 433.8 kB / 455.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.2569, allocations: 4.391 kB / 455.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004748/0.2574, allocations: 348.2 kB / 455.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.553e-06/0.2574, allocations: 3.938 kB / 455.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.002866/0.2602, allocations: 2.112 MB / 457.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.2603, allocations: 144.5 kB / 457.9 MB, free: 9.188 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.2608, allocations: 441.9 kB / 458.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.2608, allocations: 37.7 kB / 458.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002149/0.261, allocations: 327.9 kB / 458.7 MB, free: 8.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.2612, allocations: 165.7 kB / 458.9 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/0.2612, allocations: 8 kB / 458.9 MB, free: 8.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2614, allocations: 362.8 kB / 459.3 MB, free: 7.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003333/0.2617, allocations: 233.2 kB / 459.5 MB, free: 7.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004277/0.2621, allocations: 390.2 kB / 459.9 MB, free: 7.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.264, allocations: 0.7463 MB / 460.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.264, allocations: 4 kB / 460.6 MB, free: 6.391 MB / 334.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001615/0.2656, allocations: 0.9592 MB / 461.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/0.2657, allocations: 33.7 kB / 461.6 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.2657, allocations: 4 kB / 461.6 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008549/0.2666, allocations: 317.6 kB / 461.9 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009282/0.2675, allocations: 179.7 kB / 462.1 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006054/0.2736, allocations: 4.977 MB / 467.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.274, allocations: 27.98 kB / 467.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.891e-05/0.2741, allocations: 28 kB / 467.1 MB, free: 15.58 MB / 350.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.0004859/0.2746, allocations: 300.8 kB / 467.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.843e-05/0.2747, allocations: 55.33 kB / 467.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001206/0.2759, allocations: 0.814 MB / 468.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2759, allocations: 4 kB / 468.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2759, allocations: 7.938 kB / 468.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.2759, allocations: 3.984 kB / 468.3 MB, free: 14.33 MB / 350.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.002175/0.2781, allocations: 1.674 MB / 470 MB, free: 12.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.2781, allocations: 8.094 kB / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.2793, allocations: 191.8 kB / 470.2 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002024/0.2795, allocations: 78.52 kB / 470.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.896e-05/0.2796, allocations: 16 kB / 470.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/0.2822, allocations: 3.973 MB / 474.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2822, allocations: 0 / 474.2 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.2837, allocations: 1.168 MB / 475.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/0.2839, allocations: 168.4 kB / 475.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.502e-05/0.284, allocations: 19.98 kB / 475.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.2843, allocations: 19.98 kB / 475.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.223e-05/0.2844, allocations: 35.86 kB / 475.7 MB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.2844, allocations: 15.98 kB / 475.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003292/0.2847, allocations: 311.1 kB / 476 MB, free: 6.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2847, allocations: 0 / 476 MB, free: 6.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007215/0.2855, allocations: 168 kB / 476.1 MB, free: 5.844 MB / 350.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.001696/0.2872, allocations: 1.985 MB / 478.1 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.2889, allocations: 0.976 MB / 479.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.2889, allocations: 0 / 479.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007482/0.2897, allocations: 0.6525 MB / 479.7 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005591/0.2902, allocations: 117.8 kB / 479.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007592/0.2978, allocations: 7.628 MB / 487.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006005/0.2985, allocations: 0.9955 MB / 488.5 MB, free: 9.113 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003783/0.2988, allocations: 112.7 kB / 488.6 MB, free: 9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002919/0.2991, allocations: 215.4 kB / 488.8 MB, free: 8.789 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.2991, allocations: 0 / 488.8 MB, free: 8.789 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.3255, allocations: 13.2 MB / 0.4902 GB, free: 11.62 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/0.3257, allocations: 203.8 kB / 0.4904 GB, free: 11.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.154, allocations: 3.938 kB / 0.4904 GB, free: 11.37 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: