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.0007847/0.0007846, allocations: 90.03 kB / 16.65 MB, free: 6.586 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.0008655/0.0008657, allocations: 180.2 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.408/1.408, allocations: 205.4 MB / 223.7 MB, free: 13.01 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1634/0.1634, allocations: 38.05 MB / 310.1 MB, free: 5.906 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.0004868/0.0004868, allocations: 12.38 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2636, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.00583/0.2695, allocations: 6.334 MB / 439.9 MB, free: 12.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0067/0.2762, allocations: 4.874 MB / 444.8 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007523/0.277, allocations: 35.75 kB / 444.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006648/0.2837, allocations: 4.587 MB / 449.4 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.2849, allocations: 414.4 kB / 449.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006863/0.2856, allocations: 255.6 kB / 450.1 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002198/0.2878, allocations: 2.281 MB / 452.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.2894, allocations: 0.8523 MB / 453.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007683/0.2902, allocations: 382.5 kB / 453.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008754/0.2911, allocations: 0.4904 MB / 454.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.153e-05/0.2912, allocations: 32 kB / 454.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003226/0.2915, allocations: 119.8 kB / 454.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002919/0.2918, allocations: 283.2 kB / 454.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003726/0.2922, allocations: 375.9 kB / 454.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008693/0.293, allocations: 0.977 MB / 455.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2931, allocations: 0 / 455.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2931, allocations: 0 / 455.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.2931, allocations: 0 / 455.8 MB, free: 12.3 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.001667/0.2948, allocations: 0.8921 MB / 456.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.2948, allocations: 8.031 kB / 456.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.2949, allocations: 106.7 kB / 456.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003981/0.2954, allocations: 92.06 kB / 456.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2964, allocations: 0.615 MB / 457.6 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.475e-05/0.2965, allocations: 78.98 kB / 457.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.2966, allocations: 63.91 kB / 457.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.2978, allocations: 0.806 MB / 458.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.2978, allocations: 4 kB / 458.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.958e-05/0.2979, allocations: 23.98 kB / 458.5 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001202/0.298, allocations: 49.28 kB / 458.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008876/0.2989, allocations: 0.5945 MB / 459.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.3026, allocations: 2.95 MB / 462.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007388/0.3034, allocations: 426.2 kB / 462.5 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003023/0.3037, allocations: 226.3 kB / 462.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.846e-05/0.3037, allocations: 8.328 kB / 462.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004504/0.3042, allocations: 343.7 kB / 463.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=42): time 1.703e-06/0.3042, allocations: 0 / 463.1 MB, free: 4.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.002969/0.3072, allocations: 2.043 MB / 465.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.3073, allocations: 140.5 kB / 465.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.3077, allocations: 445.8 kB / 465.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.476e-05/0.3078, allocations: 29.7 kB / 465.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002255/0.308, allocations: 339.8 kB / 466.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.3081, allocations: 153.8 kB / 466.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.541e-05/0.3082, allocations: 57.69 kB / 466.3 MB, free: 1.332 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3084, allocations: 366.8 kB / 466.6 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003299/0.3087, allocations: 233.2 kB / 466.9 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004127/0.3091, allocations: 393.7 kB / 467.3 MB, free: 292 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/0.3117, allocations: 1.331 MB / 468.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3117, allocations: 4 kB / 468.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001676/0.3134, allocations: 0.9748 MB / 469.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.117e-05/0.3135, allocations: 33.73 kB / 469.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3135, allocations: 8 kB / 469.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008592/0.3144, allocations: 316.5 kB / 469.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009703/0.3154, allocations: 183.6 kB / 470.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005748/0.3211, allocations: 4.842 MB / 474.9 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/0.3215, allocations: 23.98 kB / 475 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.3216, allocations: 24 kB / 475 MB, free: 8.164 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.0003973/0.322, allocations: 299.3 kB / 475.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.777e-05/0.3221, allocations: 47.44 kB / 475.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.3232, allocations: 0.8168 MB / 476.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3232, allocations: 7.984 kB / 476.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.3232, allocations: 0 / 476.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3233, allocations: 7.938 kB / 476.2 MB, free: 6.918 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.002146/0.3254, allocations: 1.671 MB / 477.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3254, allocations: 0 / 477.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.3267, allocations: 191.9 kB / 478 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002194/0.3269, allocations: 82.45 kB / 478.1 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.327, allocations: 19.98 kB / 478.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/0.3296, allocations: 3.953 MB / 482.1 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3296, allocations: 0 / 482.1 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3311, allocations: 1.126 MB / 483.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.3314, allocations: 172.4 kB / 483.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.562e-05/0.3315, allocations: 15.94 kB / 483.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.3318, allocations: 15.98 kB / 483.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.3319, allocations: 39.89 kB / 483.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.353e-05/0.3319, allocations: 16 kB / 483.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004032/0.3323, allocations: 315.1 kB / 483.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3323, allocations: 7.938 kB / 483.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007544/0.3331, allocations: 168 kB / 483.9 MB, free: 14.5 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.001682/0.3348, allocations: 1.668 MB / 485.6 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.3366, allocations: 0.9831 MB / 486.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3366, allocations: 0 / 486.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007588/0.3373, allocations: 0.6409 MB / 487.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008771/0.3382, allocations: 129.3 kB / 487.3 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009903/0.3481, allocations: 6.606 MB / 493.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000649/0.3488, allocations: 0.9799 MB / 494.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000403/0.3492, allocations: 112.7 kB / 495 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.3496, allocations: 219.4 kB / 495.3 MB, free: 2.711 MB / 366.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3496, allocations: 4 kB / 495.3 MB, free: 2.707 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03514/0.3847, allocations: 13.19 MB / 0.4965 GB, free: 5.543 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.385, allocations: 228.3 kB / 0.4968 GB, free: 5.281 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/2.373, allocations: 0 / 0.4968 GB, free: 5.281 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/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)