Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001492, allocations: 182.8 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001134, allocations: 98.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2975/0.2975, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004664, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1076, allocations: 56.32 MB / 479.1 MB, free: 1.945 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5405/0.6481, allocations: 122.1 MB / 0.5871 GB, free: 9.891 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003528/0.6485, allocations: 97.95 kB / 0.5872 GB, free: 9.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1516/0.8002, allocations: 35.47 MB / 0.6219 GB, free: 11.67 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.8002, allocations: 0 / 0.6219 GB, free: 11.67 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001117/0.8003, allocations: 31.94 kB / 0.6219 GB, free: 11.64 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.006084/0.8064, allocations: 1.716 MB / 0.6236 GB, free: 9.934 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.8065, allocations: 8.031 kB / 0.6236 GB, free: 9.926 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007387/0.8073, allocations: 184.1 kB / 0.6238 GB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008406/0.8081, allocations: 165.7 kB / 0.6239 GB, free: 9.645 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005339/0.8135, allocations: 1.291 MB / 0.6252 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/0.8138, allocations: 189.3 kB / 0.6254 GB, free: 8.434 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000549/0.8144, allocations: 117.4 kB / 0.6255 GB, free: 8.355 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005969/0.8204, allocations: 1.842 MB / 0.6273 GB, free: 6.949 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-05/0.8205, allocations: 11.91 kB / 0.6273 GB, free: 6.938 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002057/0.8207, allocations: 49.67 kB / 0.6273 GB, free: 6.922 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002046/0.8209, allocations: 76.67 kB / 0.6274 GB, free: 6.859 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004945/0.8259, allocations: 1.418 MB / 0.6288 GB, free: 5.895 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0139/0.8398, allocations: 6.389 MB / 0.635 GB, free: 76 kB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005885/0.8457, allocations: 1.192 MB / 0.6362 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001131/0.8459, allocations: 16.66 kB / 0.6362 GB, free: 14.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002992/0.8489, allocations: 0.7924 MB / 0.637 GB, free: 14.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=88): time 4.589e-06/0.8489, allocations: 0 / 0.637 GB, free: 14.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.01495/0.8639, allocations: 3.933 MB / 0.6408 GB, free: 9.98 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.864, allocations: 149.2 kB / 0.641 GB, free: 9.805 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.8655, allocations: 0.7229 MB / 0.6417 GB, free: 9.078 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.8657, allocations: 57.69 kB / 0.6417 GB, free: 9.016 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006302/0.8664, allocations: 0.5638 MB / 0.6423 GB, free: 8.445 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004193/0.8668, allocations: 311.7 kB / 0.6426 GB, free: 8.137 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.8669, allocations: 20 kB / 0.6426 GB, free: 8.117 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002164/0.8672, allocations: 366.7 kB / 0.643 GB, free: 7.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.8687, allocations: 0.5725 MB / 0.6435 GB, free: 7.176 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001872/0.8706, allocations: 0.8968 MB / 0.6444 GB, free: 6.137 MB / 442.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00865/0.8793, allocations: 2.057 MB / 0.6464 GB, free: 4.047 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.8793, allocations: 0 / 0.6464 GB, free: 4.047 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.007237/0.8866, allocations: 2.243 MB / 0.6486 GB, free: 1.766 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00208/0.8887, allocations: 3.979 MB / 0.6525 GB, free: 13.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.172e-05/0.8888, allocations: 8 kB / 0.6525 GB, free: 13.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00404/0.8928, allocations: 0.8978 MB / 0.6534 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.8942, allocations: 183.7 kB / 0.6535 GB, free: 12.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005663/0.8998, allocations: 3.413 MB / 0.6569 GB, free: 8.801 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.9014, allocations: 83.84 kB / 0.6569 GB, free: 8.719 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/0.9016, allocations: 84.09 kB / 0.657 GB, free: 8.637 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.9017, allocations: 4 kB / 0.657 GB, free: 8.633 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006955/0.9086, allocations: 2.347 MB / 0.6593 GB, free: 6.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.792e-05/0.9087, allocations: 11.94 kB / 0.6593 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003546/0.9123, allocations: 0.8622 MB / 0.6602 GB, free: 5.363 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.9136, allocations: 171.7 kB / 0.6603 GB, free: 5.195 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005195/0.9188, allocations: 3.349 MB / 0.6636 GB, free: 1.684 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001268/0.9201, allocations: 75.84 kB / 0.6637 GB, free: 1.609 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001953/0.9203, allocations: 83.89 kB / 0.6638 GB, free: 1.527 MB / 458.7 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: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[3],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 (102): * Single equations (assignments): 99 * Array equations: 1 * 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%) 1} * Non-linear torn systems: 1 {2 31} Notification: Performance of prepare postOptimizeDAE: time 0.00132/0.9216, allocations: 0.5368 MB / 0.6643 GB, free: 0.9805 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.922, allocations: 102.8 kB / 0.6644 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005748/0.9278, allocations: 1.44 MB / 0.6658 GB, free: 15.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.041e-05/0.9278, allocations: 23.98 kB / 0.6658 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.9279, allocations: 3.953 kB / 0.6658 GB, free: 15.38 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.9279, allocations: 3.984 kB / 0.6658 GB, free: 15.37 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009614/0.9375, allocations: 2.849 MB / 0.6686 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.869e-06/0.9376, allocations: 0 / 0.6686 GB, free: 12.42 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/0.9391, allocations: 155.8 kB / 0.6687 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/0.9393, allocations: 45.69 kB / 0.6688 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.9395, allocations: 27.92 kB / 0.6688 GB, free: 12.19 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002638/0.9421, allocations: 2.684 MB / 0.6714 GB, free: 9.234 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.9422, allocations: 3.938 kB / 0.6714 GB, free: 9.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008544/0.9507, allocations: 2.27 MB / 0.6737 GB, free: 6.891 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009148/0.9517, allocations: 287.8 kB / 0.6739 GB, free: 6.59 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003974/0.9521, allocations: 87.95 kB / 0.674 GB, free: 6.504 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.9537, allocations: 119.9 kB / 0.6741 GB, free: 6.387 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002328/0.9539, allocations: 60.88 kB / 0.6742 GB, free: 6.328 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.9541, allocations: 35.97 kB / 0.6742 GB, free: 6.293 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001272/0.9553, allocations: 0.5459 MB / 0.6748 GB, free: 5.754 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.9554, allocations: 0 / 0.6748 GB, free: 5.754 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002561/0.9579, allocations: 483.9 kB / 0.6752 GB, free: 5.281 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 71 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.009467/0.9674, allocations: 3.146 MB / 0.6783 GB, free: 2.062 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008956/0.9764, allocations: 2.954 MB / 0.6812 GB, free: 15.06 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.9765, allocations: 0 / 0.6812 GB, free: 15.06 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003372/0.9798, allocations: 0.8781 MB / 0.682 GB, free: 14.16 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/0.982, allocations: 255.6 kB / 0.6823 GB, free: 13.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0303/1.012, allocations: 15.66 MB / 0.6976 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001442/1.014, allocations: 1.257 MB / 0.6988 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/1.015, allocations: 435.3 kB / 0.6992 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/1.015, allocations: 0 / 0.6992 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.671/4.686, allocations: 31.16 MB / 0.7297 GB, free: 153.6 MB / 0.4948 GB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrl.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)