Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_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.0008451/0.0008451, allocations: 89.7 kB / 16.32 MB, free: 6.449 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.001101/0.001101, allocations: 181 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.697/1.697, allocations: 205.4 MB / 223.4 MB, free: 5.281 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.394/0.394, allocations: 38.06 MB / 309.7 MB, free: 9.016 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005348/0.000535, allocations: 20 kB / 376.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1332, allocations: 56.32 MB / 432.9 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.01002/0.1433, allocations: 7.564 MB / 440.5 MB, free: 15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009752/0.1531, allocations: 4.841 MB / 445.4 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001554/0.1547, allocations: 55.69 kB / 445.4 MB, free: 10.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01035/0.165, allocations: 4.472 MB / 449.9 MB, free: 5.605 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.1671, allocations: 0.5246 MB / 450.4 MB, free: 5.078 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.1686, allocations: 403.4 kB / 450.8 MB, free: 4.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003591/0.1722, allocations: 2.577 MB / 453.4 MB, free: 2.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.1742, allocations: 1.031 MB / 454.4 MB, free: 1.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001181/0.1754, allocations: 0.5407 MB / 454.9 MB, free: 492 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2998/0.4752, allocations: 0.7034 MB / 455.7 MB, free: 38.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000389/0.4756, allocations: 49.72 kB / 455.7 MB, free: 38.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005024/0.4762, allocations: 62.09 kB / 455.8 MB, free: 38.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004014/0.4766, allocations: 366.9 kB / 456.1 MB, free: 38.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00031/0.4769, allocations: 235.2 kB / 456.3 MB, free: 38.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.478, allocations: 1.249 MB / 457.6 MB, free: 38.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.4781, allocations: 0 / 457.6 MB, free: 38.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.4781, allocations: 2.625 kB / 457.6 MB, free: 38.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.4781, allocations: 0 / 457.6 MB, free: 38.09 MB / 382.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.002379/0.4805, allocations: 1.249 MB / 458.8 MB, free: 37.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.4805, allocations: 9.219 kB / 458.9 MB, free: 37.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001654/0.4807, allocations: 141.5 kB / 459 MB, free: 37.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003698/0.4811, allocations: 135.8 kB / 459.1 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.4826, allocations: 0.8586 MB / 460 MB, free: 37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.015e-05/0.4827, allocations: 65.28 kB / 460.1 MB, free: 36.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.4828, allocations: 90.83 kB / 460.1 MB, free: 36.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.4847, allocations: 1.228 MB / 461.4 MB, free: 36.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.297e-05/0.4848, allocations: 7.188 kB / 461.4 MB, free: 36.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.17e-05/0.4849, allocations: 43.16 kB / 461.4 MB, free: 36.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001991/0.4851, allocations: 72.25 kB / 461.5 MB, free: 36.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.4867, allocations: 1.007 MB / 462.5 MB, free: 36.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005446/0.4921, allocations: 4.442 MB / 466.9 MB, free: 35.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.4933, allocations: 0.8972 MB / 467.8 MB, free: 34.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006082/0.4939, allocations: 444.4 kB / 468.3 MB, free: 34.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.36e-05/0.494, allocations: 13.16 kB / 468.3 MB, free: 34.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.919e-05/0.494, allocations: 43.86 kB / 468.3 MB, free: 34.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=70): time 2.254e-06/0.4941, allocations: 0 / 468.3 MB, free: 34.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=72): time 0.00562/0.4997, allocations: 3.342 MB / 471.7 MB, free: 33.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.4998, allocations: 141.4 kB / 471.8 MB, free: 33.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007872/0.5006, allocations: 0.687 MB / 472.5 MB, free: 33.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.754e-05/0.5006, allocations: 37.2 kB / 472.5 MB, free: 33.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003643/0.501, allocations: 475 kB / 473 MB, free: 33.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002353/0.5012, allocations: 257 kB / 473.2 MB, free: 32.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.595e-05/0.5013, allocations: 16.97 kB / 473.3 MB, free: 32.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.374e-05/0.5014, allocations: 339.9 kB / 473.6 MB, free: 32.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005871/0.502, allocations: 378.3 kB / 474 MB, free: 32.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006718/0.5027, allocations: 0.5847 MB / 474.5 MB, free: 32.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005492/0.5082, allocations: 1.525 MB / 476.1 MB, free: 32.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.5082, allocations: 3.031 kB / 476.1 MB, free: 32.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004937/0.5132, allocations: 2.059 MB / 478.1 MB, free: 31.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.5133, allocations: 280.2 kB / 478.4 MB, free: 31.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.32e-05/0.5133, allocations: 10.25 kB / 478.4 MB, free: 31.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00386/0.5172, allocations: 1.045 MB / 479.5 MB, free: 31.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005029/0.5177, allocations: 139.5 kB / 479.6 MB, free: 31.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01322/0.531, allocations: 9.223 MB / 488.8 MB, free: 27.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008081/0.5318, allocations: 42.19 kB / 488.9 MB, free: 27.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.5319, allocations: 38.05 kB / 488.9 MB, free: 27.47 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.5319, allocations: 10 kB / 488.9 MB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004563/0.5365, allocations: 1.846 MB / 490.8 MB, free: 26.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.467e-05/0.5365, allocations: 5.875 kB / 490.8 MB, free: 26.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004323/0.5409, allocations: 0.9974 MB / 491.8 MB, free: 26.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006654/0.5415, allocations: 136.1 kB / 491.9 MB, free: 26.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/0.5578, allocations: 8.95 MB / 0.4891 GB, free: 21.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008471/0.5587, allocations: 42.86 kB / 0.4891 GB, free: 21.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-05/0.5588, allocations: 39.48 kB / 0.4892 GB, free: 21.44 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.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.000814/0.5596, allocations: 416.8 kB / 0.4896 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.5598, allocations: 89.78 kB / 0.4897 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002224/0.562, allocations: 1.253 MB / 0.4909 GB, free: 20.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.562, allocations: 8.25 kB / 0.4909 GB, free: 20.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.562, allocations: 9.484 kB / 0.4909 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.278e-05/0.5621, allocations: 3.609 kB / 0.4909 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003824/0.5659, allocations: 2.413 MB / 0.4933 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.5659, allocations: 1.5 kB / 0.4933 GB, free: 19.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008544/0.5668, allocations: 163.2 kB / 0.4934 GB, free: 19.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004696/0.5672, allocations: 151 kB / 0.4936 GB, free: 19.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-05/0.5673, allocations: 23.12 kB / 0.4936 GB, free: 19.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003211/0.5705, allocations: 5.409 MB / 0.4989 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.5706, allocations: 1.125 kB / 0.4989 GB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002863/0.5734, allocations: 1.87 MB / 0.5007 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004295/0.5739, allocations: 231.8 kB / 0.5009 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.5741, allocations: 20.8 kB / 0.5009 GB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004991/0.5746, allocations: 38.27 kB / 0.501 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.5747, allocations: 56.44 kB / 0.501 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.457e-05/0.5748, allocations: 26.81 kB / 0.5011 GB, free: 12.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007768/0.5756, allocations: 482 kB / 0.5015 GB, free: 12.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5756, allocations: 0 / 0.5015 GB, free: 12.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002224/0.5778, allocations: 457.3 kB / 0.5019 GB, free: 12.26 MB / 382.1 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.003035/0.5809, allocations: 2.437 MB / 0.5043 GB, free: 10.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005209/0.5861, allocations: 2.582 MB / 0.5068 GB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5861, allocations: 0 / 0.5068 GB, free: 9.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.5874, allocations: 0.9238 MB / 0.5078 GB, free: 8.895 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.5887, allocations: 237.2 kB / 0.508 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/0.6042, allocations: 7.652 MB / 0.5154 GB, free: 4.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008975/0.6051, allocations: 1.185 MB / 0.5166 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008661/0.606, allocations: 203.6 kB / 0.5168 GB, free: 3.941 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005407/0.6066, allocations: 382.2 kB / 0.5172 GB, free: 3.621 MB / 382.1 MB Notification: Performance of SimCode: time 1.332e-06/0.6066, allocations: 0 / 0.5172 GB, free: 3.621 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05824/0.6648, allocations: 31.5 MB / 0.5479 GB, free: 4.906 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.6651, allocations: 208.2 kB / 0.5481 GB, free: 4.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.612/3.277, allocations: 7.938 kB / 0.5481 GB, free: 4.66 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: