Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.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_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",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.001516/0.001516, allocations: 185.1 kB / 13.19 MB, free: 2.125 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.983/1.983, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.001119/0.001119, allocations: 87.75 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2772/0.2772, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.439e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1037, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5116/0.6154, allocations: 118.1 MB / 0.5775 GB, free: 1.535 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003442/0.6158, allocations: 99.94 kB / 0.5775 GB, free: 1.438 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1425/0.7583, allocations: 31.3 MB / 0.6081 GB, free: 1.824 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7584, allocations: 0 / 0.6081 GB, free: 1.824 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001188/0.7585, allocations: 31.88 kB / 0.6081 GB, free: 1.793 MB / 442.7 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.004344/0.7629, allocations: 1.158 MB / 0.6093 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.763, allocations: 8.031 kB / 0.6093 GB, free: 0.5781 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005364/0.7635, allocations: 139.6 kB / 0.6094 GB, free: 444 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008949/0.7644, allocations: 138.6 kB / 0.6095 GB, free: 304 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004022/0.7685, allocations: 0.9825 MB / 0.6105 GB, free: 15.27 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.7686, allocations: 69.98 kB / 0.6106 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004132/0.7691, allocations: 95.84 kB / 0.6107 GB, free: 15.11 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003401/0.7725, allocations: 1.133 MB / 0.6118 GB, free: 13.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.779e-05/0.7726, allocations: 4 kB / 0.6118 GB, free: 13.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001547/0.7728, allocations: 36 kB / 0.6118 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002054/0.773, allocations: 61.97 kB / 0.6119 GB, free: 13.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003069/0.7761, allocations: 0.8784 MB / 0.6127 GB, free: 12.93 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01182/0.788, allocations: 4.648 MB / 0.6173 GB, free: 8.047 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001689/0.7897, allocations: 0.5726 MB / 0.6178 GB, free: 7.445 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.7908, allocations: 356.5 kB / 0.6182 GB, free: 7.086 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.791e-05/0.7909, allocations: 4.562 kB / 0.6182 GB, free: 7.082 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.566e-05/0.791, allocations: 43.12 kB / 0.6182 GB, free: 7.027 MB / 458.7 MB Notification: Performance of pre-optimization done (n=58): time 3.958e-06/0.791, allocations: 0 / 0.6182 GB, free: 7.027 MB / 458.7 MB Notification: Performance of matching and sorting (n=62): time 0.005867/0.7969, allocations: 1.969 MB / 0.6201 GB, free: 4.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.797, allocations: 145.1 kB / 0.6203 GB, free: 4.809 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/0.7983, allocations: 0.5702 MB / 0.6208 GB, free: 4.234 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001698/0.7985, allocations: 41.7 kB / 0.6209 GB, free: 4.188 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004853/0.799, allocations: 0.4973 MB / 0.6213 GB, free: 3.684 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003594/0.7994, allocations: 216.8 kB / 0.6216 GB, free: 3.469 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.817e-05/0.7995, allocations: 16 kB / 0.6216 GB, free: 3.453 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.7996, allocations: 346.8 kB / 0.6219 GB, free: 3.105 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007661/0.8004, allocations: 249.9 kB / 0.6221 GB, free: 2.863 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.8015, allocations: 0.4963 MB / 0.6226 GB, free: 2.258 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00453/0.806, allocations: 0.788 MB / 0.6234 GB, free: 1.449 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.8061, allocations: 0 / 0.6234 GB, free: 1.449 MB / 458.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005124/0.8112, allocations: 1.39 MB / 0.6248 GB, free: 8 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00146/0.8127, allocations: 2.965 MB / 0.6276 GB, free: 12.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.767e-05/0.8128, allocations: 8 kB / 0.6277 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/0.8159, allocations: 466.6 kB / 0.6281 GB, free: 12.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/0.817, allocations: 147.7 kB / 0.6282 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.8232, allocations: 4.084 MB / 0.6322 GB, free: 7.816 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.8244, allocations: 39.98 kB / 0.6323 GB, free: 7.777 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001272/0.8245, allocations: 32 kB / 0.6323 GB, free: 7.746 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.8246, allocations: 7.938 kB / 0.6323 GB, free: 7.738 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004682/0.8293, allocations: 1.294 MB / 0.6336 GB, free: 6.395 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.34e-05/0.8293, allocations: 8.344 kB / 0.6336 GB, free: 6.387 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00291/0.8323, allocations: 466.1 kB / 0.634 GB, free: 5.922 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.8334, allocations: 131.8 kB / 0.6341 GB, free: 5.793 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3315/1.165, allocations: 7.411 MB / 0.6414 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008312/1.166, allocations: 38.38 kB / 0.6414 GB, free: 127.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.131e-05/1.166, allocations: 34.55 kB / 0.6415 GB, free: 127.9 MB / 474.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: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 65 * 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%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002968/1.166, allocations: 154.1 kB / 0.6416 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002727/1.167, allocations: 83.38 kB / 0.6417 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002338/1.169, allocations: 0.8255 MB / 0.6425 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/1.169, allocations: 7.938 kB / 0.6425 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/1.169, allocations: 1.469 kB / 0.6425 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/1.169, allocations: 6.797 kB / 0.6425 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004769/1.174, allocations: 1.826 MB / 0.6443 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/1.174, allocations: 1.812 kB / 0.6443 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/1.175, allocations: 135.8 kB / 0.6444 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000288/1.176, allocations: 54.89 kB / 0.6445 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/1.176, allocations: 14.14 kB / 0.6445 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002235/1.178, allocations: 2.757 MB / 0.6472 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.178, allocations: 2 kB / 0.6472 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002925/1.181, allocations: 1.326 MB / 0.6485 GB, free: 124.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00062/1.182, allocations: 205.3 kB / 0.6487 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/1.182, allocations: 16.08 kB / 0.6487 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007598/1.183, allocations: 31.52 kB / 0.6487 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/1.183, allocations: 44.23 kB / 0.6488 GB, free: 124 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.119e-05/1.183, allocations: 20.25 kB / 0.6488 GB, free: 124 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000922/1.184, allocations: 457.4 kB / 0.6492 GB, free: 123.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.184, allocations: 1.781 kB / 0.6492 GB, free: 123.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002408/1.186, allocations: 374.8 kB / 0.6496 GB, free: 123.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003398/1.19, allocations: 2.215 MB / 0.6517 GB, free: 122.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005458/1.195, allocations: 1.921 MB / 0.6536 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.195, allocations: 1.062 kB / 0.6536 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001212/1.196, allocations: 0.5362 MB / 0.6541 GB, free: 121.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/1.198, allocations: 209.5 kB / 0.6543 GB, free: 121.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006244/1.205, allocations: 1.939 MB / 0.6562 GB, free: 121.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/1.206, allocations: 1.132 MB / 0.6573 GB, free: 120.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007938/1.207, allocations: 347.6 kB / 0.6577 GB, free: 120.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.452e-06/1.207, allocations: 4 kB / 0.6577 GB, free: 120.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.143/4.35, allocations: 25.98 MB / 0.683 GB, free: 118.7 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)