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.0008202/0.0008202, allocations: 93.88 kB / 16.3 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.0008624/0.0008624, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.248/1.248, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2674/0.2674, allocations: 38.07 MB / 330.3 MB, free: 14.2 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000292/0.0002921, allocations: 8 kB / 400.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2472, allocations: 59.15 MB / 459.2 MB, free: 30.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005816/0.2531, allocations: 5.732 MB / 464.9 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00652/0.2597, allocations: 4.415 MB / 469.4 MB, free: 23.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007697/0.2605, allocations: 37.41 kB / 469.4 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004888/0.2654, allocations: 1.675 MB / 471.1 MB, free: 22.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001319/0.2667, allocations: 366.2 kB / 471.4 MB, free: 22.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008121/0.2675, allocations: 239.4 kB / 471.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006592/0.2682, allocations: 0.5431 MB / 472.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001061/0.2693, allocations: 0.797 MB / 473 MB, free: 21.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004339/0.2697, allocations: 332.4 kB / 473.3 MB, free: 21.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004273/0.2701, allocations: 324 kB / 473.6 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.876e-05/0.2702, allocations: 31.56 kB / 473.7 MB, free: 21.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.2704, allocations: 70.83 kB / 473.7 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002736/0.2707, allocations: 258.6 kB / 474 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.2709, allocations: 163.1 kB / 474.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008351/0.2717, allocations: 0.8006 MB / 475 MB, free: 20.83 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.2717, allocations: 4 kB / 475 MB, free: 20.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2717, allocations: 3.938 kB / 475 MB, free: 20.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.2717, allocations: 1.375 kB / 475 MB, free: 20.82 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.00143/0.2732, allocations: 0.8877 MB / 475.9 MB, free: 20.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.2732, allocations: 13.61 kB / 475.9 MB, free: 20.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.2733, allocations: 104.5 kB / 476 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004151/0.2738, allocations: 109.1 kB / 476.1 MB, free: 19.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.2748, allocations: 0.5938 MB / 476.7 MB, free: 19.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.812e-05/0.2749, allocations: 84.36 kB / 476.8 MB, free: 19.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.275, allocations: 63.55 kB / 476.8 MB, free: 19.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.2761, allocations: 0.7974 MB / 477.6 MB, free: 18.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.726e-05/0.2761, allocations: 5.75 kB / 477.6 MB, free: 18.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.864e-05/0.2762, allocations: 25.61 kB / 477.6 MB, free: 18.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001279/0.2763, allocations: 50.5 kB / 477.7 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008785/0.2772, allocations: 0.5841 MB / 478.3 MB, free: 18.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004035/0.2813, allocations: 2.93 MB / 481.2 MB, free: 16.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008111/0.2821, allocations: 429.3 kB / 481.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.2822, allocations: 8.344 kB / 481.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00044/0.2826, allocations: 348.4 kB / 482 MB, free: 15.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.474e-06/0.2826, allocations: 0 / 482 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002895/0.2855, allocations: 2.106 MB / 484.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.982e-05/0.2856, allocations: 143.1 kB / 484.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005111/0.2861, allocations: 443.8 kB / 484.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.766e-05/0.2862, allocations: 31.83 kB / 484.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.2864, allocations: 334.5 kB / 485 MB, free: 13.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.2865, allocations: 159.2 kB / 485.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.66e-05/0.2865, allocations: 10.19 kB / 485.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.2866, allocations: 360.1 kB / 485.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/0.287, allocations: 233.2 kB / 485.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.2874, allocations: 393.4 kB / 486.1 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.289, allocations: 0.7502 MB / 486.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2891, allocations: 0 / 486.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001377/0.2904, allocations: 0.9708 MB / 487.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.499e-05/0.2905, allocations: 29.7 kB / 487.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.2905, allocations: 8 kB / 487.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007612/0.2913, allocations: 311.7 kB / 488.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008435/0.2921, allocations: 183.7 kB / 488.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004773/0.2969, allocations: 4.976 MB / 493.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004229/0.2973, allocations: 23.98 kB / 493.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.034e-05/0.2974, allocations: 31.98 kB / 493.4 MB, free: 4.773 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.0004049/0.2978, allocations: 299.2 kB / 493.7 MB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/0.2979, allocations: 59.3 kB / 493.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009172/0.2988, allocations: 0.7995 MB / 494.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2988, allocations: 7.984 kB / 494.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.2988, allocations: 4 kB / 494.6 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.2988, allocations: 7.938 kB / 494.6 MB, free: 3.531 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.001805/0.3006, allocations: 1.662 MB / 496.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.3007, allocations: 8.078 kB / 496.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.3018, allocations: 187.8 kB / 496.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.302, allocations: 82.52 kB / 496.5 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.302, allocations: 12 kB / 496.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002475/0.3045, allocations: 3.985 MB / 0.4888 GB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3045, allocations: 0 / 0.4888 GB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.3059, allocations: 1.164 MB / 0.4899 GB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002349/0.3062, allocations: 172.5 kB / 0.4901 GB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.068e-05/0.3063, allocations: 19.94 kB / 0.4901 GB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002617/0.3065, allocations: 15.98 kB / 0.4901 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.773e-05/0.3066, allocations: 35.89 kB / 0.4901 GB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.3067, allocations: 16 kB / 0.4902 GB, free: 11.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003361/0.307, allocations: 311.1 kB / 0.4905 GB, free: 11.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.307, allocations: 0 / 0.4905 GB, free: 11.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000723/0.3078, allocations: 164 kB / 0.4906 GB, free: 11.05 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.001771/0.3095, allocations: 2.004 MB / 0.4926 GB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3112, allocations: 0.972 MB / 0.4935 GB, free: 7.934 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3112, allocations: 0 / 0.4935 GB, free: 7.934 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007297/0.312, allocations: 0.6448 MB / 0.4942 GB, free: 7.238 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.3125, allocations: 115.8 kB / 0.4943 GB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007647/0.3202, allocations: 7.619 MB / 0.5017 GB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/0.3208, allocations: 0.9916 MB / 0.5027 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004219/0.3212, allocations: 116.7 kB / 0.5028 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.3215, allocations: 219.4 kB / 0.503 GB, free: 14 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3215, allocations: 0 / 0.503 GB, free: 14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02766/0.3492, allocations: 13.22 MB / 0.5159 GB, free: 1.012 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/0.3494, allocations: 212.1 kB / 0.5161 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.182, allocations: 0 / 0.5161 GB, free: 0.7656 MB / 382.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