Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",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.00102/0.00102, allocations: 91.64 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.001138/0.001138, allocations: 183.5 kB / 17.2 MB, free: 5.914 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.25/1.25, allocations: 223.2 MB / 241.1 MB, free: 5.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2965/0.2965, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003067, allocations: 11.98 kB / 400.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.256, allocations: 59.15 MB / 459.2 MB, free: 30.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.006575/0.2626, allocations: 7.02 MB / 466.2 MB, free: 25.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005018/0.2676, allocations: 3.127 MB / 469.4 MB, free: 22.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001135/0.2688, allocations: 51.28 kB / 469.4 MB, free: 22.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007493/0.2696, allocations: 245.9 kB / 469.7 MB, free: 22.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001939/0.2715, allocations: 0.5788 MB / 470.2 MB, free: 22.49 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.2729, allocations: 389 kB / 470.6 MB, free: 22.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001557/0.2745, allocations: 0.8509 MB / 471.5 MB, free: 21.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001389/0.2759, allocations: 0.968 MB / 472.4 MB, free: 21.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005679/0.2764, allocations: 415.8 kB / 472.8 MB, free: 21.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006661/0.2771, allocations: 460.7 kB / 473.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.2772, allocations: 45.78 kB / 473.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006427/0.2779, allocations: 262.8 kB / 473.6 MB, free: 20.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003418/0.2782, allocations: 309.8 kB / 473.9 MB, free: 20.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001976/0.2785, allocations: 221 kB / 474.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001458/0.2799, allocations: 1.279 MB / 475.4 MB, free: 20.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2799, allocations: 4 kB / 475.4 MB, free: 20.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2799, allocations: 0 / 475.4 MB, free: 20.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.899e-05/0.28, allocations: 1.375 kB / 475.4 MB, free: 20.44 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002179/0.2821, allocations: 1.239 MB / 476.6 MB, free: 19.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.2822, allocations: 10.66 kB / 476.6 MB, free: 19.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001591/0.2824, allocations: 135.8 kB / 476.8 MB, free: 19.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006251/0.283, allocations: 169.8 kB / 476.9 MB, free: 19.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.2844, allocations: 0.7656 MB / 477.7 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.345e-05/0.2844, allocations: 68.27 kB / 477.8 MB, free: 18.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001915/0.2846, allocations: 90.09 kB / 477.9 MB, free: 18.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001864/0.2865, allocations: 1.15 MB / 479 MB, free: 17.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.2865, allocations: 1.469 kB / 479 MB, free: 17.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.36e-05/0.2866, allocations: 36.25 kB / 479.1 MB, free: 17.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/0.2868, allocations: 65.16 kB / 479.1 MB, free: 17.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001437/0.2882, allocations: 0.9505 MB / 480.1 MB, free: 17.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005582/0.2938, allocations: 4.656 MB / 484.7 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009761/0.2948, allocations: 0.6832 MB / 485.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.434e-05/0.2949, allocations: 10.78 kB / 485.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.2949, allocations: 50.59 kB / 485.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.445e-06/0.2949, allocations: 0 / 485.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=62): time 0.004239/0.2992, allocations: 2.567 MB / 488 MB, free: 10.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.2992, allocations: 137.1 kB / 488.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006119/0.2998, allocations: 0.6723 MB / 488.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.2999, allocations: 41.64 kB / 488.9 MB, free: 9.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001958/0.3001, allocations: 490.8 kB / 489.4 MB, free: 9.238 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.3002, allocations: 216.8 kB / 489.6 MB, free: 9.023 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.3002, allocations: 24.03 kB / 489.6 MB, free: 9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.095e-05/0.3003, allocations: 390.7 kB / 490 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.3007, allocations: 273.8 kB / 490.2 MB, free: 8.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004463/0.3012, allocations: 0.5137 MB / 490.8 MB, free: 7.719 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002087/0.3033, allocations: 0.8257 MB / 491.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3033, allocations: 0 / 491.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002385/0.3057, allocations: 1.502 MB / 493.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004474/0.3061, allocations: 2.967 MB / 496 MB, free: 2.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3061, allocations: 8 kB / 496.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001405/0.3075, allocations: 483.7 kB / 496.5 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.308, allocations: 139.8 kB / 496.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008912/0.3169, allocations: 7.795 MB / 0.4926 GB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006491/0.3176, allocations: 56.22 kB / 0.4927 GB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-05/0.3177, allocations: 35.98 kB / 0.4927 GB, free: 9.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.877e-06/0.3177, allocations: 4 kB / 0.4927 GB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002388/0.3201, allocations: 1.298 MB / 0.494 GB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.3201, allocations: 8 kB / 0.494 GB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/0.3216, allocations: 442.3 kB / 0.4944 GB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005064/0.3221, allocations: 139.8 kB / 0.4946 GB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008295/0.3304, allocations: 7.482 MB / 0.5019 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007103/0.3311, allocations: 35.98 kB / 0.5019 GB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.13e-05/0.3312, allocations: 35.98 kB / 0.5019 GB, free: 15.32 MB / 382.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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006371/0.3319, allocations: 412.8 kB / 0.5023 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.332, allocations: 78.97 kB / 0.5024 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001306/0.3333, allocations: 0.8415 MB / 0.5032 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.3333, allocations: 11.98 kB / 0.5032 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3334, allocations: 0 / 0.5032 GB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.3334, allocations: 3.984 kB / 0.5032 GB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.3361, allocations: 1.866 MB / 0.5051 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3361, allocations: 0 / 0.5051 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006364/0.3368, allocations: 143.8 kB / 0.5052 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001241/0.3369, allocations: 41.7 kB / 0.5052 GB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/0.337, allocations: 15.95 kB / 0.5053 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.3386, allocations: 2.665 MB / 0.5079 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3386, allocations: 4.031 kB / 0.5079 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00173/0.3403, allocations: 1.374 MB / 0.5092 GB, free: 7.375 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003604/0.3407, allocations: 216 kB / 0.5094 GB, free: 7.145 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.881e-05/0.3408, allocations: 12 kB / 0.5094 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004216/0.3412, allocations: 27.98 kB / 0.5094 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.679e-05/0.3413, allocations: 48.44 kB / 0.5095 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.3414, allocations: 19.98 kB / 0.5095 GB, free: 7.035 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005985/0.342, allocations: 475 kB / 0.51 GB, free: 6.578 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.342, allocations: 0 / 0.51 GB, free: 6.578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0017/0.3437, allocations: 412 kB / 0.5104 GB, free: 6.176 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (65): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 2 {(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.002276/0.346, allocations: 2.231 MB / 0.5125 GB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003539/0.3495, allocations: 2.234 MB / 0.5147 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.3496, allocations: 0 / 0.5147 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007103/0.3503, allocations: 0.5527 MB / 0.5153 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009981/0.3513, allocations: 205.7 kB / 0.5155 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01134/0.3626, allocations: 11.32 MB / 0.5265 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.3633, allocations: 1.143 MB / 0.5276 GB, free: 3.977 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006997/0.3641, allocations: 214.5 kB / 0.5278 GB, free: 3.762 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/0.3645, allocations: 343.3 kB / 0.5282 GB, free: 3.426 MB / 398.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3645, allocations: 0 / 0.5282 GB, free: 3.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04264/0.4071, allocations: 24.1 MB / 0.5517 GB, free: 11.59 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.4074, allocations: 226.1 kB / 0.5519 GB, free: 11.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.021/2.428, allocations: 0 / 0.5519 GB, free: 11.34 MB / 430.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat does not exist to compare? outputFormat=mat