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.0009/0.0009002, allocations: 95.58 kB / 16.3 MB, free: 5.996 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.0009011/0.0009012, allocations: 182.7 kB / 17.2 MB, free: 5.914 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.355/1.355, allocations: 205.4 MB / 223.4 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2847/0.2847, allocations: 38.05 MB / 309.7 MB, free: 9.055 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.0006/0.0006, allocations: 12 kB / 376.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1018, allocations: 56.33 MB / 432.9 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007517/0.1093, allocations: 7.024 MB / 439.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005091/0.1145, allocations: 3.181 MB / 443.1 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007801/0.1153, allocations: 55.62 kB / 443.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006647/0.116, allocations: 242.5 kB / 443.4 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.1174, allocations: 0.5841 MB / 444 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.1185, allocations: 383.3 kB / 444.4 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001261/0.1198, allocations: 0.8471 MB / 445.2 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.121, allocations: 0.968 MB / 446.2 MB, free: 9.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005039/0.1215, allocations: 422.4 kB / 446.6 MB, free: 8.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005796/0.1221, allocations: 466.1 kB / 447.1 MB, free: 8.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.403e-05/0.1222, allocations: 44 kB / 447.1 MB, free: 8.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004702/0.1227, allocations: 259.6 kB / 447.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.123, allocations: 307.1 kB / 447.7 MB, free: 7.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.1232, allocations: 225.1 kB / 447.9 MB, free: 7.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.1244, allocations: 1.278 MB / 449.2 MB, free: 6.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1244, allocations: 4 kB / 449.2 MB, free: 6.391 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1244, allocations: 4 kB / 449.2 MB, free: 6.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.1244, allocations: 0 / 449.2 MB, free: 6.387 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.002201/0.1266, allocations: 1.234 MB / 450.4 MB, free: 5.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.1267, allocations: 8.031 kB / 450.4 MB, free: 5.094 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001703/0.1268, allocations: 135.6 kB / 450.5 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006605/0.1275, allocations: 162.5 kB / 450.7 MB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001394/0.1289, allocations: 0.7848 MB / 451.5 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.129, allocations: 62 kB / 451.5 MB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/0.1292, allocations: 91.91 kB / 451.6 MB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00181/0.131, allocations: 1.153 MB / 452.8 MB, free: 2.605 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.9e-05/0.131, allocations: 4 kB / 452.8 MB, free: 2.602 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-05/0.1311, allocations: 35.94 kB / 452.8 MB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.1312, allocations: 65.91 kB / 452.9 MB, free: 2.504 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.1328, allocations: 0.9524 MB / 453.8 MB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1765/0.3093, allocations: 4.646 MB / 458.5 MB, free: 48.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000918/0.3103, allocations: 0.6943 MB / 459.2 MB, free: 48.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.766e-05/0.3103, allocations: 7.812 kB / 459.2 MB, free: 48.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.3103, allocations: 43.3 kB / 459.2 MB, free: 48.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=58): time 2.454e-06/0.3104, allocations: 3.938 kB / 459.2 MB, free: 48.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=62): time 0.004109/0.3145, allocations: 2.572 MB / 461.8 MB, free: 47.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.3145, allocations: 135.5 kB / 461.9 MB, free: 47.03 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006953/0.3152, allocations: 0.6774 MB / 462.6 MB, free: 46.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.3153, allocations: 38.2 kB / 462.7 MB, free: 46.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002107/0.3155, allocations: 492.4 kB / 463.1 MB, free: 46.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001082/0.3156, allocations: 218.5 kB / 463.3 MB, free: 46.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.3157, allocations: 16.06 kB / 463.4 MB, free: 46.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.885e-05/0.3157, allocations: 395.6 kB / 463.7 MB, free: 46.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/0.3162, allocations: 268.7 kB / 464 MB, free: 46.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.3167, allocations: 0.5168 MB / 464.5 MB, free: 45.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002214/0.319, allocations: 0.816 MB / 465.3 MB, free: 45.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.319, allocations: 3.062 kB / 465.3 MB, free: 45.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002465/0.3214, allocations: 1.503 MB / 466.8 MB, free: 45.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004236/0.3219, allocations: 2.968 MB / 469.8 MB, free: 42.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.3219, allocations: 9.531 kB / 469.8 MB, free: 42.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.3233, allocations: 484 kB / 470.3 MB, free: 42.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004507/0.3238, allocations: 139.2 kB / 470.4 MB, free: 42.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007611/0.3314, allocations: 7.792 MB / 478.2 MB, free: 36.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005535/0.332, allocations: 46.39 kB / 478.3 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-05/0.3321, allocations: 37.09 kB / 478.3 MB, free: 36.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-06/0.3321, allocations: 6.312 kB / 478.3 MB, free: 36.52 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002064/0.3341, allocations: 1.298 MB / 479.6 MB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.3342, allocations: 8.078 kB / 479.6 MB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001321/0.3355, allocations: 443.8 kB / 480.1 MB, free: 35.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.3359, allocations: 141.2 kB / 480.2 MB, free: 35.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00665/0.3426, allocations: 7.498 MB / 487.7 MB, free: 30.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005623/0.3432, allocations: 34.67 kB / 487.7 MB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.3432, allocations: 35.06 kB / 487.8 MB, free: 30.23 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 (70): * Single equations (assignments): 67 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0004679/0.3437, allocations: 405.2 kB / 488.2 MB, free: 29.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.3438, allocations: 84.94 kB / 488.2 MB, free: 29.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.345, allocations: 0.8371 MB / 489.1 MB, free: 29.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.345, allocations: 12.69 kB / 489.1 MB, free: 29.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.345, allocations: 0 / 489.1 MB, free: 29.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.345, allocations: 6.844 kB / 489.1 MB, free: 29.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.3473, allocations: 1.869 MB / 491 MB, free: 28.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3473, allocations: 3.219 kB / 491 MB, free: 28.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006114/0.3479, allocations: 134.7 kB / 491.1 MB, free: 28.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001177/0.348, allocations: 47.67 kB / 491.1 MB, free: 28.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.3481, allocations: 17.94 kB / 491.2 MB, free: 28.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.3492, allocations: 2.667 MB / 493.8 MB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3492, allocations: 320 / 493.8 MB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.3508, allocations: 1.369 MB / 495.2 MB, free: 24.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002795/0.3511, allocations: 217.6 kB / 495.4 MB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-05/0.3512, allocations: 18.19 kB / 495.4 MB, free: 24.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004042/0.3516, allocations: 30.31 kB / 495.5 MB, free: 24.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.795e-05/0.3517, allocations: 36.31 kB / 495.5 MB, free: 24.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.3517, allocations: 26.02 kB / 495.5 MB, free: 24.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000461/0.3522, allocations: 478.2 kB / 496 MB, free: 24.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3522, allocations: 0 / 496 MB, free: 24.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001482/0.3537, allocations: 413.4 kB / 496.4 MB, free: 24.4 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 (65): * Single equations (assignments): 62 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001783/0.3555, allocations: 2.22 MB / 498.6 MB, free: 22.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003001/0.3585, allocations: 2.229 MB / 0.4891 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3585, allocations: 1.375 kB / 0.4891 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006017/0.3591, allocations: 0.5605 MB / 0.4896 GB, free: 21.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008824/0.36, allocations: 198.3 kB / 0.4898 GB, free: 21.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00982/0.3698, allocations: 11.35 MB / 0.5009 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007114/0.3706, allocations: 1.142 MB / 0.502 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007604/0.3714, allocations: 212.5 kB / 0.5022 GB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003831/0.3717, allocations: 346.5 kB / 0.5026 GB, free: 11.61 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3718, allocations: 1.406 kB / 0.5026 GB, free: 11.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0391/0.4109, allocations: 24.16 MB / 0.5262 GB, free: 252 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001381/0.411, allocations: 210.2 kB / 0.5264 GB, free: 16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.238/2.649, allocations: 3.938 kB / 0.5264 GB, free: 15.99 MB / 398.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: