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: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007879/0.0007878, allocations: 91.5 kB / 16.65 MB, free: 6.59 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.0008794/0.0008794, allocations: 182.3 kB / 17.56 MB, free: 6.203 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.662/1.662, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1924/0.1924, allocations: 38.06 MB / 310.1 MB, free: 5.914 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.0004924/0.0004925, allocations: 12 kB / 377.2 MB, free: 2.723 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2726, allocations: 56.33 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005625/0.2783, allocations: 6.329 MB / 439.8 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007171/0.2855, allocations: 4.874 MB / 444.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008624/0.2864, allocations: 39.75 kB / 444.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007323/0.2937, allocations: 4.59 MB / 449.3 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001076/0.2948, allocations: 410.4 kB / 449.7 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006692/0.2955, allocations: 255.7 kB / 450 MB, free: 2.145 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002352/0.2979, allocations: 2.288 MB / 452.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002207/0.3001, allocations: 0.8367 MB / 453.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.3015, allocations: 390.5 kB / 453.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001438/0.3029, allocations: 494.2 kB / 454 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003341/0.3033, allocations: 32 kB / 454 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008023/0.3041, allocations: 127.7 kB / 454.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006678/0.3048, allocations: 279.2 kB / 454.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006888/0.3055, allocations: 371.9 kB / 454.8 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001055/0.3065, allocations: 0.9809 MB / 455.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.3066, allocations: 0 / 455.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3066, allocations: 4 kB / 455.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.3066, allocations: 4 kB / 455.7 MB, free: 12.32 MB / 334.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.002039/0.3086, allocations: 0.8844 MB / 456.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.3087, allocations: 11.97 kB / 456.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005415/0.3092, allocations: 104 kB / 456.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.3104, allocations: 0.6035 MB / 457.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.85e-05/0.3105, allocations: 83.02 kB / 457.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.3107, allocations: 67.89 kB / 457.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/0.3119, allocations: 0.8021 MB / 458.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.836e-05/0.312, allocations: 4 kB / 458.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.668e-05/0.312, allocations: 20 kB / 458.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.3122, allocations: 53.28 kB / 458.4 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009575/0.3132, allocations: 0.5867 MB / 459 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004182/0.3173, allocations: 2.946 MB / 461.9 MB, free: 5.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008502/0.3182, allocations: 430.1 kB / 462.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003463/0.3186, allocations: 230.3 kB / 462.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.139e-05/0.3186, allocations: 4.328 kB / 462.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004879/0.3191, allocations: 343.8 kB / 462.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 2.384e-06/0.3191, allocations: 4 kB / 462.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.003267/0.3224, allocations: 2.036 MB / 464.9 MB, free: 2.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.3225, allocations: 144.4 kB / 465.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.323, allocations: 445.8 kB / 465.5 MB, free: 2.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.3231, allocations: 41.73 kB / 465.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.3233, allocations: 327.8 kB / 465.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.3235, allocations: 161.7 kB / 466 MB, free: 1.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.3236, allocations: 57.69 kB / 466.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3237, allocations: 358.8 kB / 466.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003486/0.3241, allocations: 233.2 kB / 466.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004324/0.3245, allocations: 397.7 kB / 467 MB, free: 432 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.3273, allocations: 1.331 MB / 468.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.3273, allocations: 8 kB / 468.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001688/0.329, allocations: 0.9668 MB / 469.4 MB, free: 14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.231e-05/0.329, allocations: 33.7 kB / 469.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.329, allocations: 8 kB / 469.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008907/0.3299, allocations: 309.6 kB / 469.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009164/0.3309, allocations: 179.7 kB / 469.9 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005884/0.3368, allocations: 4.848 MB / 474.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.3371, allocations: 35.92 kB / 474.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.273e-05/0.3371, allocations: 28 kB / 474.8 MB, free: 8.297 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,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.0003699/0.3375, allocations: 295.3 kB / 475.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.3376, allocations: 47.44 kB / 475.1 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001148/0.3388, allocations: 0.8207 MB / 475.9 MB, free: 7.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3388, allocations: 4 kB / 475.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3388, allocations: 4 kB / 475.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3388, allocations: 0 / 475.9 MB, free: 7.059 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.002182/0.341, allocations: 1.679 MB / 477.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.341, allocations: 0 / 477.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.3422, allocations: 195.8 kB / 477.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/0.3425, allocations: 70.53 kB / 477.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.736e-05/0.3425, allocations: 19.98 kB / 477.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002829/0.3453, allocations: 3.965 MB / 481.9 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3454, allocations: 4.031 kB / 481.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.3467, allocations: 1.118 MB / 483 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.3469, allocations: 168.4 kB / 483.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.347, allocations: 23.92 kB / 483.2 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.3473, allocations: 19.98 kB / 483.2 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.52e-05/0.3474, allocations: 31.91 kB / 483.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.3474, allocations: 15.98 kB / 483.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003487/0.3478, allocations: 315.1 kB / 483.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3478, allocations: 0 / 483.6 MB, free: 14.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006338/0.3484, allocations: 160 kB / 483.7 MB, free: 14.66 MB / 366.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.0001684/0.3486, allocations: 127.1 kB / 483.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001611/0.3502, allocations: 0.9754 MB / 484.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3502, allocations: 0 / 484.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.3509, allocations: 0.6448 MB / 485.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007509/0.3517, allocations: 133.8 kB / 485.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.3544, allocations: 2.043 MB / 487.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005799/0.355, allocations: 0.9799 MB / 488.6 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000378/0.3554, allocations: 120.7 kB / 488.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.3555, allocations: 35.44 kB / 488.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3555, allocations: 0 / 488.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of Templates: time 0.01401/0.3695, allocations: 7.871 MB / 496.6 MB, free: 1.594 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) Environment - environmentSimulation: