Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001025/0.001025, allocations: 171.9 kB / 16.07 MB, free: 5.723 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.245/1.245, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007271/0.0007271, allocations: 89.53 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1592/0.1592, allocations: 38.08 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003747/0.0003747, allocations: 11.98 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2663, allocations: 56.32 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005246/0.2715, allocations: 4.834 MB / 484.6 MB, free: 6.051 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.2739, allocations: 1.621 MB / 486.2 MB, free: 4.879 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003203/0.2743, allocations: 27.78 kB / 486.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003484/0.2746, allocations: 105.3 kB / 486.3 MB, free: 4.816 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006735/0.2753, allocations: 283.8 kB / 486.6 MB, free: 4.652 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.2757, allocations: 133.2 kB / 486.7 MB, free: 4.586 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008103/0.2765, allocations: 0.6151 MB / 487.3 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004453/0.277, allocations: 306 kB / 487.6 MB, free: 4.203 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000292/0.2773, allocations: 195.7 kB / 487.8 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003301/0.2776, allocations: 210.7 kB / 488 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.2777, allocations: 21.41 kB / 488.1 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.486e-05/0.2778, allocations: 24.59 kB / 488.1 MB, free: 4.035 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.2779, allocations: 100 kB / 488.2 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.2781, allocations: 216.6 kB / 488.4 MB, free: 3.855 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005176/0.2786, allocations: 389 kB / 488.8 MB, free: 3.766 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.2787, allocations: 0.6094 kB / 488.8 MB, free: 3.766 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2787, allocations: 7.938 kB / 488.8 MB, free: 3.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.305e-06/0.2787, allocations: 0 / 488.8 MB, free: 3.758 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001141/0.2798, allocations: 0.642 MB / 489.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.2799, allocations: 9.875 kB / 489.4 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.367e-05/0.28, allocations: 71.08 kB / 489.5 MB, free: 3.188 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.291e-05/0.2801, allocations: 43.19 kB / 489.5 MB, free: 3.168 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005195/0.2806, allocations: 395.3 kB / 489.9 MB, free: 2.859 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.501e-05/0.2807, allocations: 56.45 kB / 490 MB, free: 2.816 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.217e-05/0.2808, allocations: 41.38 kB / 490 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006806/0.2814, allocations: 434.8 kB / 490.5 MB, free: 2.551 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.2815, allocations: 5.281 kB / 490.5 MB, free: 2.547 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.493e-05/0.2815, allocations: 16.97 kB / 490.5 MB, free: 2.535 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.2815, allocations: 12.25 kB / 490.5 MB, free: 2.531 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004987/0.282, allocations: 273.9 kB / 490.8 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2839, allocations: 1.849 MB / 492.6 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003198/0.2843, allocations: 181.1 kB / 492.8 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.2844, allocations: 78.25 kB / 492.9 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.2845, allocations: 2.469 kB / 492.9 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.819e-05/0.2845, allocations: 36.94 kB / 492.9 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.2845, allocations: 0 / 492.9 MB, free: 0.7578 MB / 314.7 MB Notification: Performance of matching and sorting (n=19): time 0.001237/0.2857, allocations: 0.715 MB / 493.6 MB, free: 252 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.2858, allocations: 105.7 kB / 493.7 MB, free: 124 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003496/0.2861, allocations: 314.4 kB / 494 MB, free: 15.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.2862, allocations: 30.98 kB / 494 MB, free: 15.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.2863, allocations: 245.3 kB / 494.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.122e-05/0.2864, allocations: 78.42 kB / 494.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.497e-05/0.2864, allocations: 5.281 kB / 494.4 MB, free: 15.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.2866, allocations: 341 kB / 494.7 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.2868, allocations: 73.27 kB / 494.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.287, allocations: 196.3 kB / 495 MB, free: 15.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/0.2875, allocations: 295.4 kB / 495.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.2875, allocations: 5.406 kB / 495.3 MB, free: 14.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005794/0.2881, allocations: 330.7 kB / 495.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.2881, allocations: 10.22 kB / 495.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.2881, allocations: 7.938 kB / 495.6 MB, free: 14.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.2882, allocations: 11.5 kB / 495.6 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.2885, allocations: 74.25 kB / 495.7 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.2885, allocations: 14.48 kB / 495.7 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.2887, allocations: 13.12 kB / 495.7 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.2887, allocations: 16.92 kB / 495.7 MB, free: 14.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * 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 initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002122/0.2889, allocations: 179.8 kB / 495.9 MB, free: 14.53 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.111e-05/0.289, allocations: 34.7 kB / 495.9 MB, free: 14.51 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004221/0.2894, allocations: 202.7 kB / 496.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.2894, allocations: 2.688 kB / 496.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.2895, allocations: 1.188 kB / 496.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.2895, allocations: 2.984 kB / 496.1 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.2905, allocations: 0.6168 MB / 496.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.2905, allocations: 1.219 kB / 496.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00025/0.2907, allocations: 46.77 kB / 496.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.2908, allocations: 2.031 kB / 496.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.2908, allocations: 2.641 kB / 496.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.865e-06/0.2908, allocations: 6.609 kB / 496.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.2908, allocations: 1.281 kB / 496.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006607/0.2915, allocations: 457.8 kB / 497.3 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.2916, allocations: 102.7 kB / 497.4 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.255e-05/0.2916, allocations: 6.812 kB / 497.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.2918, allocations: 9.312 kB / 497.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.122e-05/0.2919, allocations: 16.88 kB / 497.4 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.2919, allocations: 11.47 kB / 497.4 MB, free: 13.51 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002589/0.2922, allocations: 215.1 kB / 497.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2922, allocations: 1.344 kB / 497.6 MB, free: 13.39 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004276/0.2926, allocations: 70.91 kB / 497.7 MB, free: 13.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008735/0.2935, allocations: 0.9897 MB / 498.7 MB, free: 12.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.2939, allocations: 194.2 kB / 498.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.294, allocations: 3.938 kB / 498.9 MB, free: 12.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.2941, allocations: 79.88 kB / 499 MB, free: 12.44 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007072/0.2949, allocations: 95.88 kB / 499 MB, free: 12.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/0.2987, allocations: 2.292 MB / 0.4896 GB, free: 11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.2992, allocations: 0.8142 MB / 0.4904 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.2994, allocations: 122.9 kB / 0.4905 GB, free: 10.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2994, allocations: 0 / 0.4905 GB, free: 10.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.893/3.192, allocations: 5.711 MB / 0.4961 GB, free: 7.637 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)