Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav",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.001492/0.001492, allocations: 114.2 kB / 17.07 MB, free: 5.945 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.001553/0.001553, allocations: 197.4 kB / 18.01 MB, free: 5.023 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.431/1.431, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1851/0.1851, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 59.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3733/0.3752, allocations: 58.06 MB / 0.5036 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007699/0.383, allocations: 7.108 MB / 0.5106 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007628/0.3906, allocations: 5.097 MB / 0.5155 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000893/0.3916, allocations: 28.12 kB / 0.5156 GB, free: 14.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01228/0.4039, allocations: 5.709 MB / 0.5212 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002211/0.4061, allocations: 0.508 MB / 0.5216 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.408, allocations: 0.4935 MB / 0.5221 GB, free: 12.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004481/0.4125, allocations: 2.247 MB / 0.5243 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.4141, allocations: 0.9288 MB / 0.5252 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001163/0.4153, allocations: 0.6049 MB / 0.5258 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.4163, allocations: 0.7187 MB / 0.5265 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001784/0.4165, allocations: 100.1 kB / 0.5266 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007112/0.4172, allocations: 257.7 kB / 0.5269 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006588/0.4179, allocations: 496.8 kB / 0.5273 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000729/0.4187, allocations: 0.5839 MB / 0.5279 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002146/0.4208, allocations: 1.549 MB / 0.5294 GB, free: 9.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4208, allocations: 9.703 kB / 0.5294 GB, free: 9.207 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.4208, allocations: 0 / 0.5294 GB, free: 9.207 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.4209, allocations: 3.938 kB / 0.5294 GB, free: 9.203 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003191/0.4241, allocations: 1.483 MB / 0.5309 GB, free: 8.09 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.4241, allocations: 14.14 kB / 0.5309 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001844/0.4243, allocations: 135.9 kB / 0.531 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006235/0.4249, allocations: 154.8 kB / 0.5312 GB, free: 7.898 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001814/0.4268, allocations: 0.9176 MB / 0.5321 GB, free: 7.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.351e-05/0.4268, allocations: 58.53 kB / 0.5321 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.427, allocations: 88.08 kB / 0.5322 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.4289, allocations: 1.237 MB / 0.5334 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.626e-05/0.429, allocations: 10.58 kB / 0.5334 GB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.04e-05/0.4291, allocations: 36.42 kB / 0.5335 GB, free: 6.301 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002309/0.4293, allocations: 88.14 kB / 0.5335 GB, free: 6.273 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001643/0.4309, allocations: 1.003 MB / 0.5345 GB, free: 5.793 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007193/0.4381, allocations: 4.898 MB / 0.5393 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.4393, allocations: 0.6573 MB / 0.54 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006702/0.44, allocations: 360.2 kB / 0.5403 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.769e-05/0.4401, allocations: 7.531 kB / 0.5403 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007789/0.4408, allocations: 445.8 kB / 0.5407 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.205e-06/0.4409, allocations: 0 / 0.5407 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.005311/0.4462, allocations: 2.744 MB / 0.5434 GB, free: 15.04 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.4463, allocations: 121.6 kB / 0.5435 GB, free: 14.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.4473, allocations: 0.7505 MB / 0.5443 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.92e-05/0.4474, allocations: 41.7 kB / 0.5443 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004243/0.4478, allocations: 0.5039 MB / 0.5448 GB, free: 13.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002901/0.4481, allocations: 249.9 kB / 0.545 GB, free: 13.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002901/0.4484, allocations: 182.5 kB / 0.5452 GB, free: 13.47 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002286/0.4487, allocations: 398.7 kB / 0.5456 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000596/0.4493, allocations: 377.8 kB / 0.5459 GB, free: 12.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008402/0.4501, allocations: 0.65 MB / 0.5466 GB, free: 11.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/0.4516, allocations: 1.057 MB / 0.5476 GB, free: 10.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.4516, allocations: 4 kB / 0.5476 GB, free: 10.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003182/0.4548, allocations: 1.628 MB / 0.5492 GB, free: 9.078 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.4549, allocations: 12.44 kB / 0.5492 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/0.4549, allocations: 16 kB / 0.5492 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/0.4565, allocations: 489.2 kB / 0.5497 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006136/0.4571, allocations: 167.7 kB / 0.5499 GB, free: 8.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.4677, allocations: 7.092 MB / 0.5568 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008704/0.4686, allocations: 48.03 kB / 0.5568 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.957e-05/0.4687, allocations: 47.98 kB / 0.5569 GB, free: 0.9336 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0006827/0.4694, allocations: 345.5 kB / 0.5572 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.4696, allocations: 95.39 kB / 0.5573 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002004/0.4716, allocations: 1.114 MB / 0.5584 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.4716, allocations: 4 kB / 0.5584 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.4716, allocations: 4 kB / 0.5584 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4716, allocations: 3.984 kB / 0.5584 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003689/0.4753, allocations: 2.115 MB / 0.5605 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.4753, allocations: 4 kB / 0.5605 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007538/0.4761, allocations: 123.8 kB / 0.5606 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005451/0.4767, allocations: 166.5 kB / 0.5607 GB, free: 12.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.158e-05/0.4767, allocations: 23.97 kB / 0.5608 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004682/0.4814, allocations: 4.805 MB / 0.5655 GB, free: 7.527 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4814, allocations: 4.031 kB / 0.5655 GB, free: 7.523 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002527/0.484, allocations: 1.539 MB / 0.567 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004199/0.4844, allocations: 212.5 kB / 0.5672 GB, free: 5.688 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.4845, allocations: 23.98 kB / 0.5672 GB, free: 5.664 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004331/0.485, allocations: 27.98 kB / 0.5672 GB, free: 5.637 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001518/0.4851, allocations: 52.42 kB / 0.5673 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.742e-05/0.4852, allocations: 23.98 kB / 0.5673 GB, free: 5.562 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000762/0.486, allocations: 0.5185 MB / 0.5678 GB, free: 5.051 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.486, allocations: 0 / 0.5678 GB, free: 5.051 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00109/0.4871, allocations: 267.9 kB / 0.568 GB, free: 4.789 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,1,100.0%), (2,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.004045/0.4911, allocations: 2.387 MB / 0.5704 GB, free: 2.469 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.4939, allocations: 1.334 MB / 0.5717 GB, free: 1.105 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.4939, allocations: 4 kB / 0.5717 GB, free: 1.102 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.4952, allocations: 0.7852 MB / 0.5724 GB, free: 284 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.4965, allocations: 218.7 kB / 0.5727 GB, free: 64 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0159/0.5124, allocations: 9.866 MB / 0.5823 GB, free: 5.762 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009415/0.5133, allocations: 1.143 MB / 0.5834 GB, free: 4.59 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007155/0.5141, allocations: 227.3 kB / 0.5836 GB, free: 4.363 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005205/0.5146, allocations: 363.3 kB / 0.584 GB, free: 4.008 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5146, allocations: 0 / 0.584 GB, free: 4.008 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06597/0.5806, allocations: 23.83 MB / 0.6072 GB, free: 12.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.59/17.17, allocations: 14.61 kB / 0.6073 GB, free: 12.32 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)