Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008838/0.0008838, allocations: 178.2 kB / 16.07 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.372/1.372, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000801/0.0008011, allocations: 88.86 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1629/0.1629, allocations: 38.08 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.000345, allocations: 12 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2521, allocations: 56.33 MB / 479.7 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007229/0.2594, allocations: 7.584 MB / 487.3 MB, free: 4.09 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006945/0.2664, allocations: 4.828 MB / 492.2 MB, free: 0.707 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/0.2675, allocations: 52.66 kB / 492.2 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009432/0.277, allocations: 4.625 MB / 496.8 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002006/0.279, allocations: 0.5222 MB / 497.4 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.2806, allocations: 425.1 kB / 497.8 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003934/0.2845, allocations: 2.589 MB / 0.4886 GB, free: 13.67 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001618/0.2861, allocations: 1.152 MB / 0.4898 GB, free: 12.86 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008966/0.2871, allocations: 0.5358 MB / 0.4903 GB, free: 12.57 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000939/0.288, allocations: 0.7148 MB / 0.491 GB, free: 12.16 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.2881, allocations: 50 kB / 0.491 GB, free: 12.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002427/0.2884, allocations: 61.7 kB / 0.4911 GB, free: 12.16 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003852/0.2888, allocations: 377.5 kB / 0.4914 GB, free: 11.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005218/0.2893, allocations: 0.5172 MB / 0.4919 GB, free: 11.55 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.2904, allocations: 1.243 MB / 0.4932 GB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2905, allocations: 0 / 0.4932 GB, free: 10.65 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2905, allocations: 0 / 0.4932 GB, free: 10.65 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.2905, allocations: 1.094 kB / 0.4932 GB, free: 10.65 MB / 330.7 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.002633/0.2931, allocations: 1.248 MB / 0.4944 GB, free: 9.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2932, allocations: 9.688 kB / 0.4944 GB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.2934, allocations: 135.9 kB / 0.4945 GB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000375/0.2937, allocations: 133.8 kB / 0.4946 GB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.2955, allocations: 0.894 MB / 0.4955 GB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.479e-05/0.2955, allocations: 69.12 kB / 0.4956 GB, free: 8.797 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001489/0.2957, allocations: 86.75 kB / 0.4957 GB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.2976, allocations: 1.214 MB / 0.4969 GB, free: 7.996 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.2976, allocations: 10.59 kB / 0.4969 GB, free: 7.988 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.915e-05/0.2977, allocations: 44.23 kB / 0.4969 GB, free: 7.953 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002003/0.2979, allocations: 74.2 kB / 0.497 GB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001595/0.2995, allocations: 1.006 MB / 0.498 GB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005831/0.3054, allocations: 4.441 MB / 0.5023 GB, free: 3.402 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3066, allocations: 0.9034 MB / 0.5032 GB, free: 2.449 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006595/0.3073, allocations: 446.1 kB / 0.5036 GB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.656e-05/0.3074, allocations: 16.53 kB / 0.5036 GB, free: 1.992 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3074, allocations: 43.06 kB / 0.5037 GB, free: 1.941 MB / 330.7 MB Notification: Performance of pre-optimization done (n=70): time 2.515e-06/0.3074, allocations: 0 / 0.5037 GB, free: 1.941 MB / 330.7 MB Notification: Performance of matching and sorting (n=72): time 0.006252/0.3137, allocations: 3.322 MB / 0.5069 GB, free: 14.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.3138, allocations: 141.1 kB / 0.507 GB, free: 14.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007926/0.3146, allocations: 0.6765 MB / 0.5077 GB, free: 13.6 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.693e-05/0.3146, allocations: 41.73 kB / 0.5077 GB, free: 13.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003171/0.315, allocations: 483.3 kB / 0.5082 GB, free: 13.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.3152, allocations: 256.4 kB / 0.5084 GB, free: 12.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.755e-05/0.3152, allocations: 16 kB / 0.5085 GB, free: 12.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3153, allocations: 341.9 kB / 0.5088 GB, free: 12.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006168/0.316, allocations: 365.8 kB / 0.5091 GB, free: 12.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000766/0.3167, allocations: 0.5982 MB / 0.5097 GB, free: 11.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007608/0.3244, allocations: 2.438 MB / 0.5121 GB, free: 8.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.123e-06/0.3244, allocations: 4 kB / 0.5121 GB, free: 8.863 MB / 346.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005593/0.33, allocations: 2.051 MB / 0.5141 GB, free: 6.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001952/0.3302, allocations: 291.9 kB / 0.5144 GB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.3302, allocations: 8 kB / 0.5144 GB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004588/0.3348, allocations: 1.039 MB / 0.5154 GB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005484/0.3354, allocations: 135.8 kB / 0.5155 GB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01465/0.35, allocations: 9.167 MB / 0.5245 GB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000764/0.3508, allocations: 44.16 kB / 0.5245 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.351, allocations: 43.98 kB / 0.5246 GB, free: 11.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.625e-06/0.351, allocations: 4 kB / 0.5246 GB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005176/0.3562, allocations: 1.848 MB / 0.5264 GB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.3562, allocations: 8 kB / 0.5264 GB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004324/0.3605, allocations: 0.9968 MB / 0.5274 GB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005267/0.3611, allocations: 135.8 kB / 0.5275 GB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01331/0.3744, allocations: 8.906 MB / 0.5362 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006802/0.3751, allocations: 40.05 kB / 0.5362 GB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.944e-05/0.3752, allocations: 35.98 kB / 0.5363 GB, free: 15.41 MB / 378.7 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_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (65): * Single equations (assignments): 63 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006327/0.3759, allocations: 405.5 kB / 0.5367 GB, free: 15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.3761, allocations: 94.81 kB / 0.5367 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002129/0.3782, allocations: 1.257 MB / 0.538 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3782, allocations: 8 kB / 0.538 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.3782, allocations: 4 kB / 0.538 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.3783, allocations: 3.984 kB / 0.538 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003691/0.3819, allocations: 2.418 MB / 0.5403 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.382, allocations: 4 kB / 0.5403 GB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008304/0.3828, allocations: 159.8 kB / 0.5405 GB, free: 10.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004446/0.3833, allocations: 155.3 kB / 0.5406 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.689e-05/0.3833, allocations: 23.98 kB / 0.5407 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003726/0.3871, allocations: 5.401 MB / 0.5459 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3871, allocations: 4.031 kB / 0.546 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.3898, allocations: 1.876 MB / 0.5478 GB, free: 2.797 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.3902, allocations: 231.9 kB / 0.548 GB, free: 2.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.3903, allocations: 19.98 kB / 0.548 GB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005152/0.3908, allocations: 35.97 kB / 0.5481 GB, free: 2.496 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.391, allocations: 56.58 kB / 0.5481 GB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.757e-05/0.3911, allocations: 23.98 kB / 0.5481 GB, free: 2.418 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005895/0.3917, allocations: 479 kB / 0.5486 GB, free: 1.957 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3917, allocations: 0 / 0.5486 GB, free: 1.957 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001649/0.3933, allocations: 456 kB / 0.549 GB, free: 1.512 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,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 (79): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(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.002866/0.3962, allocations: 2.44 MB / 0.5514 GB, free: 14.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004804/0.401, allocations: 2.599 MB / 0.5539 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.401, allocations: 1.125 kB / 0.5539 GB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.4022, allocations: 0.9284 MB / 0.5549 GB, free: 11.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.4036, allocations: 227 kB / 0.5551 GB, free: 11.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.4182, allocations: 7.708 MB / 0.5626 GB, free: 3.145 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009047/0.4192, allocations: 1.182 MB / 0.5638 GB, free: 1.934 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005606/0.4197, allocations: 379.3 kB / 0.5641 GB, free: 1.562 MB / 394.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4197, allocations: 0 / 0.5641 GB, free: 1.562 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.998/5.417, allocations: 30.55 MB / 0.5939 GB, free: 2.953 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)