Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.0008267/0.0008268, allocations: 94.27 kB / 16.65 MB, free: 6.598 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.0007316/0.0007316, allocations: 182.8 kB / 17.56 MB, free: 6.199 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.195/1.195, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1604/0.1604, allocations: 38.06 MB / 310.1 MB, free: 5.906 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.0004675/0.0004675, allocations: 15.69 kB / 377.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.217, allocations: 56.34 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.004248/0.2213, allocations: 5.029 MB / 438.6 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.2231, allocations: 1.703 MB / 440.3 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00023/0.2234, allocations: 27.81 kB / 440.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002781/0.2237, allocations: 95.41 kB / 440.5 MB, free: 11.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004438/0.2241, allocations: 246.7 kB / 440.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.2244, allocations: 119.8 kB / 440.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005598/0.2249, allocations: 0.7164 MB / 441.5 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.2252, allocations: 309.6 kB / 441.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.2255, allocations: 195.1 kB / 442 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002455/0.2257, allocations: 219 kB / 442.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.599e-05/0.2258, allocations: 20 kB / 442.3 MB, free: 9.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.743e-05/0.2258, allocations: 23.94 kB / 442.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.189e-05/0.2259, allocations: 99.7 kB / 442.4 MB, free: 9.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.226, allocations: 216.7 kB / 442.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.2263, allocations: 490.2 kB / 443.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2264, allocations: 0 / 443.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.2264, allocations: 0 / 443.1 MB, free: 9.129 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.2264, allocations: 0 / 443.1 MB, free: 9.129 MB / 318.1 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.000921/0.2273, allocations: 0.6407 MB / 443.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.2274, allocations: 8.031 kB / 443.7 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.832e-05/0.2274, allocations: 78.72 kB / 443.8 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.531e-05/0.2275, allocations: 44.47 kB / 443.8 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.2279, allocations: 387.8 kB / 444.2 MB, free: 7.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.371e-05/0.228, allocations: 58.69 kB / 444.3 MB, free: 7.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.153e-05/0.2281, allocations: 36 kB / 444.3 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005376/0.2286, allocations: 440 kB / 444.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.2286, allocations: 3.906 kB / 444.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.2287, allocations: 16 kB / 444.8 MB, free: 7.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.2287, allocations: 8 kB / 444.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004167/0.2291, allocations: 278 kB / 445 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001511/0.2306, allocations: 1.865 MB / 446.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002671/0.2309, allocations: 179.7 kB / 447.1 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.231, allocations: 82.55 kB / 447.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.2311, allocations: 3.984 kB / 447.2 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.2311, allocations: 38.56 kB / 447.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.272e-06/0.2311, allocations: 0 / 447.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001051/0.2322, allocations: 0.7178 MB / 447.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.2322, allocations: 110.8 kB / 448 MB, free: 3.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.2324, allocations: 316.4 kB / 448.3 MB, free: 3.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.2325, allocations: 29.7 kB / 448.4 MB, free: 3.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.602e-05/0.2326, allocations: 243.5 kB / 448.6 MB, free: 3.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.2326, allocations: 67.08 kB / 448.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.2327, allocations: 37.7 kB / 448.7 MB, free: 3.086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.374e-05/0.2327, allocations: 346.8 kB / 449 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.2329, allocations: 64.62 kB / 449.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.2331, allocations: 205.5 kB / 449.3 MB, free: 2.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.2334, allocations: 300 kB / 449.6 MB, free: 2.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.2334, allocations: 7.938 kB / 449.6 MB, free: 2.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004371/0.2338, allocations: 333.1 kB / 449.9 MB, free: 1.727 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.2339, allocations: 4 kB / 449.9 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.2339, allocations: 4 kB / 449.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2339, allocations: 8 kB / 449.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002508/0.2341, allocations: 71.91 kB / 450 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.2342, allocations: 15.92 kB / 450 MB, free: 1.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.2343, allocations: 16.22 kB / 450 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.768e-05/0.2344, allocations: 16 kB / 450.1 MB, free: 1.594 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.2345, allocations: 177.7 kB / 450.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.022e-05/0.2346, allocations: 39.56 kB / 450.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003281/0.2349, allocations: 199.8 kB / 450.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2349, allocations: 0 / 450.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.2349, allocations: 4 kB / 450.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2349, allocations: 4 kB / 450.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.2356, allocations: 0.6239 MB / 451.1 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.2356, allocations: 0 / 451.1 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002064/0.2358, allocations: 47.91 kB / 451.1 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.2359, allocations: 8.031 kB / 451.2 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.2359, allocations: 4 kB / 451.2 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2359, allocations: 4 kB / 451.2 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2359, allocations: 3.984 kB / 451.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004908/0.2364, allocations: 456.5 kB / 451.6 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.049e-05/0.2365, allocations: 104.7 kB / 451.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.16e-05/0.2365, allocations: 8.031 kB / 451.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.2367, allocations: 11.94 kB / 451.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/0.2368, allocations: 7.984 kB / 451.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.541e-05/0.2368, allocations: 15.88 kB / 451.8 MB, free: 15.78 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002081/0.237, allocations: 223 kB / 452 MB, free: 15.56 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.237, allocations: 4 kB / 452 MB, free: 15.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.2374, allocations: 68 kB / 452 MB, free: 15.49 MB / 334.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008108/0.2382, allocations: 0.9862 MB / 453 MB, free: 14.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003904/0.2386, allocations: 196.7 kB / 453.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2386, allocations: 0 / 453.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.2388, allocations: 79.91 kB / 453.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007016/0.2395, allocations: 95.25 kB / 453.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004106/0.2436, allocations: 3.678 MB / 457.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.244, allocations: 0.8187 MB / 457.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.2442, allocations: 47.25 kB / 457.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.2443, allocations: 123.4 kB / 458.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2443, allocations: 0 / 458.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.381/1.626, allocations: 6.512 MB / 464.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/1.626, allocations: 198.7 kB / 464.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/3.354, allocations: 0 / 464.8 MB, free: 2.496 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)