Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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_icontrol,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol",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.001134/0.001134, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001272/0.001272, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.392/1.392, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.343/0.343, allocations: 38.08 MB / 330.4 MB, free: 14.19 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004102/0.0004103, allocations: 8 kB / 400.2 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.326, allocations: 59.16 MB / 459.3 MB, free: 30.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.00807/0.3341, allocations: 7.459 MB / 466.8 MB, free: 25.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009292/0.3434, allocations: 5.039 MB / 471.8 MB, free: 21.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.3451, allocations: 48.47 kB / 471.9 MB, free: 21.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01204/0.3572, allocations: 5.375 MB / 477.2 MB, free: 20.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002189/0.3594, allocations: 0.5284 MB / 477.8 MB, free: 19.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.361, allocations: 467.5 kB / 478.2 MB, free: 19.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004833/0.3659, allocations: 2.806 MB / 481 MB, free: 17.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001785/0.3677, allocations: 1.043 MB / 482.1 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.3689, allocations: 0.5744 MB / 482.7 MB, free: 16.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008951/0.3698, allocations: 0.7979 MB / 483.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001218/0.3699, allocations: 56 kB / 483.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.3703, allocations: 112 kB / 483.6 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003314/0.3707, allocations: 446.7 kB / 484.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.3709, allocations: 253 kB / 484.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000995/0.3719, allocations: 1.465 MB / 485.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3719, allocations: 4 kB / 485.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3719, allocations: 0 / 485.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.372, allocations: 0 / 485.8 MB, free: 13.48 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.002739/0.3747, allocations: 1.475 MB / 487.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3748, allocations: 12.03 kB / 487.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001549/0.3749, allocations: 139.7 kB / 487.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003634/0.3753, allocations: 146.3 kB / 487.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.377, allocations: 1.027 MB / 488.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.377, allocations: 66 kB / 488.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.3772, allocations: 95.98 kB / 488.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.3789, allocations: 1.328 MB / 490.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.3789, allocations: 7.844 kB / 490.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.672e-05/0.379, allocations: 32 kB / 490.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002526/0.3793, allocations: 101.9 kB / 490.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.3809, allocations: 1.14 MB / 491.3 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006037/0.3869, allocations: 4.945 MB / 496.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.3881, allocations: 0.9536 MB / 497.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006774/0.3888, allocations: 0.5315 MB / 497.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.694e-05/0.3889, allocations: 16.64 kB / 497.8 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008307/0.3898, allocations: 0.6255 MB / 498.4 MB, free: 460 kB / 350.1 MB Notification: Performance of pre-optimization done (n=79): time 3.577e-06/0.3898, allocations: 0 / 498.4 MB, free: 460 kB / 350.1 MB Notification: Performance of matching and sorting (n=81): time 0.008768/0.3986, allocations: 4.214 MB / 0.4908 GB, free: 12.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.63e-05/0.3987, allocations: 174.8 kB / 0.491 GB, free: 11.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.3998, allocations: 0.8448 MB / 0.4918 GB, free: 10.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.101e-05/0.3999, allocations: 41.7 kB / 0.4919 GB, free: 10.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003936/0.4003, allocations: 0.519 MB / 0.4924 GB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002694/0.4006, allocations: 287.8 kB / 0.4926 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.146e-05/0.4007, allocations: 24.03 kB / 0.4927 GB, free: 10.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4008, allocations: 341.9 kB / 0.493 GB, free: 9.766 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007878/0.4016, allocations: 481.7 kB / 0.4935 GB, free: 9.297 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009133/0.4025, allocations: 0.7169 MB / 0.4942 GB, free: 8.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009336/0.4035, allocations: 0.5613 MB / 0.4947 GB, free: 7.922 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4035, allocations: 0 / 0.4947 GB, free: 7.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00832/0.4118, allocations: 2.935 MB / 0.4976 GB, free: 4.949 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003198/0.4122, allocations: 286.2 kB / 0.4978 GB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.4122, allocations: 12 kB / 0.4979 GB, free: 4.562 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007964/0.4202, allocations: 1.927 MB / 0.4997 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006712/0.4209, allocations: 143.8 kB / 0.4999 GB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/0.442, allocations: 11.53 MB / 0.5111 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.443, allocations: 59.95 kB / 0.5112 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.4432, allocations: 47.98 kB / 0.5112 GB, free: 6.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.4433, allocations: 4 kB / 0.5112 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007791/0.4511, allocations: 2.704 MB / 0.5139 GB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.4511, allocations: 12 kB / 0.5139 GB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007304/0.4584, allocations: 1.846 MB / 0.5157 GB, free: 1.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.4591, allocations: 139.8 kB / 0.5158 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02055/0.4797, allocations: 11.27 MB / 0.5268 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/0.4808, allocations: 51.95 kB / 0.5269 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.481, allocations: 47.98 kB / 0.5269 GB, free: 6.203 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,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 (71): * Single equations (assignments): 69 * 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 {9 40} Notification: Performance of prepare postOptimizeDAE: time 0.0008906/0.4819, allocations: 444.8 kB / 0.5274 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/0.4822, allocations: 102.7 kB / 0.5275 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003498/0.4857, allocations: 1.658 MB / 0.5291 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.4857, allocations: 8 kB / 0.5291 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/0.4858, allocations: 4 kB / 0.5291 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.4858, allocations: 7.969 kB / 0.5291 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004823/0.4906, allocations: 2.91 MB / 0.5319 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/0.4906, allocations: 8.031 kB / 0.5319 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008994/0.4915, allocations: 167.8 kB / 0.5321 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001277/0.4928, allocations: 395 kB / 0.5325 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.493, allocations: 31.98 kB / 0.5325 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006261/0.4992, allocations: 6.293 MB / 0.5387 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4993, allocations: 0 / 0.5387 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00399/0.5032, allocations: 2.299 MB / 0.5409 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005517/0.5038, allocations: 271.7 kB / 0.5412 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002491/0.5041, allocations: 24 kB / 0.5412 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006707/0.5048, allocations: 51.95 kB / 0.5412 GB, free: 6.734 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.505, allocations: 72.89 kB / 0.5413 GB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.712e-05/0.5051, allocations: 27.98 kB / 0.5413 GB, free: 6.637 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008854/0.506, allocations: 0.5698 MB / 0.5419 GB, free: 6.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.506, allocations: 4 kB / 0.5419 GB, free: 6.051 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002625/0.5086, allocations: 0.5546 MB / 0.5424 GB, free: 5.496 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,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_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * 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 (82): * Single equations (assignments): 77 * 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 {(2,100.0%) 2,(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005162/0.5138, allocations: 3.169 MB / 0.5455 GB, free: 2.395 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006496/0.5203, allocations: 3.208 MB / 0.5487 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5203, allocations: 0 / 0.5487 GB, free: 15.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001837/0.5222, allocations: 1.146 MB / 0.5498 GB, free: 13.95 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.5238, allocations: 271.5 kB / 0.55 GB, free: 13.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02176/0.5455, allocations: 9.853 MB / 0.5597 GB, free: 3.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.5468, allocations: 1.249 MB / 0.5609 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001098/0.5479, allocations: 248.2 kB / 0.5611 GB, free: 1.953 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007174/0.5486, allocations: 431.3 kB / 0.5615 GB, free: 1.531 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5486, allocations: 0 / 0.5615 GB, free: 1.531 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3231/0.8717, allocations: 40.61 MB / 0.6012 GB, free: 103.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002103/0.872, allocations: 278.3 kB / 0.6015 GB, free: 103.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.841/3.713, allocations: 3.938 kB / 0.6015 GB, free: 103.4 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASMav_icontrol.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol_res.mat does not exist to compare? outputFormat=mat