Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.SM_ctrlAv,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_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.0008185/0.0008186, allocations: 89.66 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.001035/0.001035, allocations: 179.4 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.57/1.57, allocations: 205.4 MB / 223.4 MB, free: 5.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3325/0.3325, allocations: 38.06 MB / 309.7 MB, free: 8.84 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.0005536/0.0005539, allocations: 16 kB / 376.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1304, allocations: 56.33 MB / 432.9 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008346/0.1388, allocations: 7.338 MB / 440.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006141/0.145, allocations: 3.181 MB / 443.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001246/0.1462, allocations: 59.62 kB / 443.5 MB, free: 12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008654/0.1471, allocations: 250.2 kB / 443.8 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001752/0.1489, allocations: 0.6297 MB / 444.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.1502, allocations: 363.5 kB / 444.8 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.1523, allocations: 1.582 MB / 446.3 MB, free: 9.176 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.1539, allocations: 0.9641 MB / 447.3 MB, free: 8.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007792/0.1547, allocations: 458 kB / 447.7 MB, free: 7.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008506/0.1555, allocations: 0.5876 MB / 448.3 MB, free: 7.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.322e-05/0.1556, allocations: 44 kB / 448.4 MB, free: 7.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005649/0.1562, allocations: 271.5 kB / 448.6 MB, free: 6.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000334/0.1566, allocations: 331 kB / 449 MB, free: 6.488 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.1568, allocations: 221.1 kB / 449.2 MB, free: 6.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.158, allocations: 1.29 MB / 450.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.158, allocations: 0 / 450.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.158, allocations: 0 / 450.5 MB, free: 4.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.601e-05/0.158, allocations: 0 / 450.5 MB, free: 4.973 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.002653/0.1607, allocations: 1.23 MB / 451.7 MB, free: 3.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.224e-05/0.1608, allocations: 8.031 kB / 451.7 MB, free: 3.684 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002035/0.161, allocations: 143.6 kB / 451.9 MB, free: 3.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007358/0.1617, allocations: 166.5 kB / 452 MB, free: 3.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.1632, allocations: 0.7732 MB / 452.8 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.749e-05/0.1633, allocations: 70 kB / 452.9 MB, free: 2.488 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.1635, allocations: 91.91 kB / 452.9 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.1654, allocations: 1.157 MB / 454.1 MB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.515e-05/0.1655, allocations: 7.938 kB / 454.1 MB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.999e-05/0.1655, allocations: 32 kB / 454.1 MB, free: 1.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000103/0.1656, allocations: 69.97 kB / 454.2 MB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.1672, allocations: 0.9484 MB / 455.2 MB, free: 132 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2636/0.4308, allocations: 4.647 MB / 459.8 MB, free: 48.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001035/0.4319, allocations: 0.6928 MB / 460.5 MB, free: 48.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005668/0.4325, allocations: 342.3 kB / 460.8 MB, free: 48.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.777e-05/0.4326, allocations: 7.781 kB / 460.8 MB, free: 48.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.4326, allocations: 43.59 kB / 460.9 MB, free: 48.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 6.302e-06/0.4326, allocations: 4.266 kB / 460.9 MB, free: 48.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=62): time 0.004452/0.4371, allocations: 2.372 MB / 463.3 MB, free: 47.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.747e-05/0.4372, allocations: 140.2 kB / 463.4 MB, free: 47.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.4384, allocations: 0.6838 MB / 464.1 MB, free: 47.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.069e-05/0.4384, allocations: 37.64 kB / 464.1 MB, free: 47.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003917/0.4388, allocations: 491.5 kB / 464.6 MB, free: 47.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.439, allocations: 214.4 kB / 464.8 MB, free: 47.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.4391, allocations: 21.66 kB / 464.8 MB, free: 47.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4392, allocations: 387 kB / 465.2 MB, free: 46.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00043/0.4396, allocations: 278 kB / 465.5 MB, free: 46.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006194/0.4403, allocations: 0.5189 MB / 466 MB, free: 46.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/0.4424, allocations: 0.8238 MB / 466.8 MB, free: 46.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.4424, allocations: 0 / 466.8 MB, free: 46.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.00248/0.4449, allocations: 1.401 MB / 468.2 MB, free: 45.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.4451, allocations: 314.1 kB / 468.5 MB, free: 45.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.4451, allocations: 10.39 kB / 468.5 MB, free: 45.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001323/0.4465, allocations: 465.2 kB / 469 MB, free: 44.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.4469, allocations: 143.6 kB / 469.1 MB, free: 44.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007261/0.4542, allocations: 6.211 MB / 475.3 MB, free: 40.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006285/0.4549, allocations: 42.31 kB / 475.4 MB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.4549, allocations: 32.92 kB / 475.4 MB, free: 40.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.455, allocations: 6.188 kB / 475.4 MB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002077/0.457, allocations: 1.208 MB / 476.6 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.4571, allocations: 12.16 kB / 476.6 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.4583, allocations: 427.1 kB / 477.1 MB, free: 40.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004682/0.4588, allocations: 144.6 kB / 477.2 MB, free: 40.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006169/0.4649, allocations: 5.922 MB / 483.1 MB, free: 36.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006349/0.4656, allocations: 35.67 kB / 483.2 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.4657, allocations: 34.5 kB / 483.2 MB, free: 36.11 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 (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 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006174/0.4663, allocations: 408.2 kB / 483.6 MB, free: 35.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.4664, allocations: 88.25 kB / 483.7 MB, free: 35.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.4676, allocations: 0.7352 MB / 484.4 MB, free: 35.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4676, allocations: 6.75 kB / 484.4 MB, free: 35.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4676, allocations: 0 / 484.4 MB, free: 35.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.4676, allocations: 6.984 kB / 484.4 MB, free: 35.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/0.4701, allocations: 1.776 MB / 486.2 MB, free: 34.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4701, allocations: 3.25 kB / 486.2 MB, free: 34.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006127/0.4707, allocations: 142.2 kB / 486.3 MB, free: 34.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.283e-05/0.4708, allocations: 21.61 kB / 486.4 MB, free: 34.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.4709, allocations: 18.81 kB / 486.4 MB, free: 34.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006502/0.4715, allocations: 1.285 MB / 487.7 MB, free: 33.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4715, allocations: 160 / 487.7 MB, free: 33.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.4731, allocations: 1.218 MB / 488.9 MB, free: 32.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.4733, allocations: 208.8 kB / 489.1 MB, free: 32.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.397e-05/0.4734, allocations: 23.14 kB / 489.1 MB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003792/0.4738, allocations: 30.7 kB / 489.1 MB, free: 32.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.875e-05/0.4739, allocations: 44.23 kB / 489.2 MB, free: 32.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.624e-05/0.4739, allocations: 20.52 kB / 489.2 MB, free: 32.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005221/0.4745, allocations: 477.1 kB / 489.7 MB, free: 32.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4745, allocations: 0 / 489.7 MB, free: 32.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001579/0.4761, allocations: 412.8 kB / 490.1 MB, free: 32.09 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 (66): * Single equations (assignments): 64 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001826/0.4779, allocations: 1.807 MB / 491.9 MB, free: 30.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003088/0.481, allocations: 1.969 MB / 493.8 MB, free: 29.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.481, allocations: 0 / 493.8 MB, free: 29.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005551/0.4816, allocations: 449.3 kB / 494.3 MB, free: 29.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.4828, allocations: 225.2 kB / 494.5 MB, free: 29.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.494, allocations: 6.31 MB / 0.4891 GB, free: 26.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009198/0.4949, allocations: 1.122 MB / 0.4902 GB, free: 25.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009073/0.4958, allocations: 211.5 kB / 0.4904 GB, free: 25.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/0.4963, allocations: 343.9 kB / 0.4907 GB, free: 25.17 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.4963, allocations: 3.938 kB / 0.4907 GB, free: 25.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05309/0.5494, allocations: 23.88 MB / 0.514 GB, free: 13.57 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.5496, allocations: 226.9 kB / 0.5142 GB, free: 13.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.47/3.02, allocations: 0.6562 kB / 0.5142 GB, free: 13.31 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: