Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_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.0007713/0.0007713, allocations: 84.06 kB / 16.31 MB, free: 6.449 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.0008861/0.000886, allocations: 180.6 kB / 17.21 MB, free: 6.32 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.407/1.407, allocations: 223.3 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3635/0.3635, allocations: 38.08 MB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003473, allocations: 8 kB / 400.2 MB, free: 9.133 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3199, allocations: 59.16 MB / 459.3 MB, free: 30.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.006288/0.3262, allocations: 6.006 MB / 465.3 MB, free: 25.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006495/0.3328, allocations: 4.45 MB / 469.8 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009005/0.3337, allocations: 39.06 kB / 469.8 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01024/0.344, allocations: 4.393 MB / 474.2 MB, free: 21.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001918/0.3459, allocations: 466.8 kB / 474.7 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.347, allocations: 253.7 kB / 474.9 MB, free: 21.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002854/0.3498, allocations: 1.948 MB / 476.9 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001182/0.351, allocations: 0.7992 MB / 477.7 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006386/0.3517, allocations: 394 kB / 478 MB, free: 19.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00058/0.3523, allocations: 494 kB / 478.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.176e-05/0.3523, allocations: 30.62 kB / 478.6 MB, free: 19.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002438/0.3526, allocations: 66.97 kB / 478.6 MB, free: 19.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.3529, allocations: 286.2 kB / 478.9 MB, free: 18.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.353, allocations: 164.1 kB / 479.1 MB, free: 18.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006408/0.3537, allocations: 0.7931 MB / 479.9 MB, free: 18.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3537, allocations: 4.875 kB / 479.9 MB, free: 18.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3537, allocations: 4 kB / 479.9 MB, free: 18.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.3537, allocations: 0 / 479.9 MB, free: 18.3 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.001845/0.3556, allocations: 0.8974 MB / 480.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.3556, allocations: 8.969 kB / 480.8 MB, free: 17.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001465/0.3558, allocations: 101.1 kB / 480.9 MB, free: 17.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005314/0.3563, allocations: 105.7 kB / 481 MB, free: 17.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/0.3574, allocations: 0.5806 MB / 481.6 MB, free: 16.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.473e-05/0.3576, allocations: 80.23 kB / 481.6 MB, free: 16.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.3577, allocations: 59.91 kB / 481.7 MB, free: 16.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/0.359, allocations: 0.8039 MB / 482.5 MB, free: 16.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.359, allocations: 9.281 kB / 482.5 MB, free: 16.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.992e-05/0.3591, allocations: 26.33 kB / 482.5 MB, free: 16.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001249/0.3592, allocations: 49.25 kB / 482.6 MB, free: 16.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008259/0.36, allocations: 0.5941 MB / 483.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003089/0.3631, allocations: 2.946 MB / 486.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006709/0.3638, allocations: 422.2 kB / 486.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002745/0.3641, allocations: 234.2 kB / 486.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-05/0.3641, allocations: 4.656 kB / 486.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004134/0.3646, allocations: 346.5 kB / 487.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.224e-06/0.3646, allocations: 3.938 kB / 487.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002651/0.3672, allocations: 2.036 MB / 489.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.3673, allocations: 144.5 kB / 489.3 MB, free: 9.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003796/0.3677, allocations: 445.8 kB / 489.7 MB, free: 8.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.061e-05/0.3677, allocations: 37.7 kB / 489.8 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.3679, allocations: 323.9 kB / 490.1 MB, free: 8.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.368, allocations: 165.7 kB / 490.2 MB, free: 8.383 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.3681, allocations: 8 kB / 490.2 MB, free: 8.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.674e-05/0.3681, allocations: 362.8 kB / 490.6 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000282/0.3684, allocations: 229.2 kB / 490.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.3688, allocations: 398.2 kB / 491.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001599/0.3704, allocations: 0.7463 MB / 492 MB, free: 6.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3704, allocations: 0 / 492 MB, free: 6.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001394/0.3718, allocations: 0.9669 MB / 492.9 MB, free: 5.574 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.3718, allocations: 33.7 kB / 493 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.3718, allocations: 4 kB / 493 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007534/0.3726, allocations: 317.6 kB / 493.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007631/0.3734, allocations: 171.8 kB / 493.4 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004705/0.3781, allocations: 4.862 MB / 498.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004296/0.3785, allocations: 27.98 kB / 498.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.3786, allocations: 23.98 kB / 498.4 MB, free: 15.87 MB / 366.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.0004722/0.3791, allocations: 299.3 kB / 498.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.076e-05/0.3792, allocations: 55.3 kB / 498.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.3804, allocations: 0.8016 MB / 499.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.3804, allocations: 4 kB / 499.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3804, allocations: 7.953 kB / 499.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.3804, allocations: 3.984 kB / 499.5 MB, free: 14.63 MB / 366.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.002258/0.3827, allocations: 1.677 MB / 0.4894 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3827, allocations: 0 / 0.4894 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.3838, allocations: 191.9 kB / 0.4896 GB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002265/0.384, allocations: 78.52 kB / 0.4897 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.3841, allocations: 16 kB / 0.4897 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.3869, allocations: 3.949 MB / 0.4936 GB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3869, allocations: 0 / 0.4936 GB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001479/0.3884, allocations: 1.123 MB / 0.4947 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.3886, allocations: 176.4 kB / 0.4948 GB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.033e-05/0.3887, allocations: 12 kB / 0.4949 GB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.389, allocations: 23.98 kB / 0.4949 GB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.3891, allocations: 31.95 kB / 0.4949 GB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.3891, allocations: 16 kB / 0.4949 GB, free: 6.711 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000395/0.3895, allocations: 315 kB / 0.4952 GB, free: 6.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3895, allocations: 0 / 0.4952 GB, free: 6.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007706/0.3903, allocations: 164 kB / 0.4954 GB, free: 6.246 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 (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.001735/0.392, allocations: 1.683 MB / 0.497 GB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.3938, allocations: 0.965 MB / 0.498 GB, free: 3.469 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.3938, allocations: 4.062 kB / 0.498 GB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008049/0.3946, allocations: 0.6476 MB / 0.4986 GB, free: 2.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007602/0.3954, allocations: 122.2 kB / 0.4987 GB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006942/0.4024, allocations: 4.504 MB / 0.5031 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006382/0.403, allocations: 0.9799 MB / 0.5041 GB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003939/0.4034, allocations: 112.7 kB / 0.5042 GB, free: 12.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002951/0.4037, allocations: 219.4 kB / 0.5044 GB, free: 12.68 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4037, allocations: 4 kB / 0.5044 GB, free: 12.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02946/0.4332, allocations: 13.24 MB / 0.5173 GB, free: 15.68 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.4334, allocations: 216.5 kB / 0.5175 GB, free: 15.43 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.161/2.594, allocations: 2.391 kB / 0.5175 GB, free: 15.43 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat does not exist to compare? outputFormat=mat