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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.000979/0.000979, allocations: 180.1 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.249/1.249, allocations: 194.5 MB / 211.6 MB, free: 3.039 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001545/0.001545, allocations: 109.9 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1644/0.1644, allocations: 38.01 MB / 340.1 MB, free: 1.34 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003936/0.0003936, allocations: 8 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1005, allocations: 53.23 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4676, allocations: 94.35 MB / 0.5385 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.4679, allocations: 97.5 kB / 0.5386 GB, free: 0.7539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02964/0.4976, allocations: 11.36 MB / 0.5497 GB, free: 7.086 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4976, allocations: 0 / 0.5497 GB, free: 7.086 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.266e-05/0.4977, allocations: 12 kB / 0.5497 GB, free: 7.074 MB / 362.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.001434/0.4991, allocations: 0.6667 MB / 0.5504 GB, free: 6.391 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.4992, allocations: 16.02 kB / 0.5504 GB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001646/0.4993, allocations: 72.03 kB / 0.5505 GB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.4995, allocations: 39.53 kB / 0.5505 GB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.5008, allocations: 0.577 MB / 0.5511 GB, free: 5.758 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/0.501, allocations: 57.08 kB / 0.5511 GB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/0.501, allocations: 42.34 kB / 0.5512 GB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007615/0.5018, allocations: 437.3 kB / 0.5516 GB, free: 5.316 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.461e-05/0.5018, allocations: 4 kB / 0.5516 GB, free: 5.312 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.5019, allocations: 18.81 kB / 0.5516 GB, free: 5.305 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.5019, allocations: 8 kB / 0.5516 GB, free: 5.297 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005414/0.5025, allocations: 269.4 kB / 0.5519 GB, free: 5.117 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/0.5051, allocations: 1.871 MB / 0.5537 GB, free: 3.391 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.5055, allocations: 195 kB / 0.5539 GB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.5055, allocations: 288 / 0.5539 GB, free: 3.215 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/0.5055, allocations: 34.56 kB / 0.5539 GB, free: 3.172 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.222e-06/0.5055, allocations: 3.938 kB / 0.5539 GB, free: 3.168 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001785/0.5073, allocations: 0.9357 MB / 0.5548 GB, free: 2.281 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.5074, allocations: 106.9 kB / 0.5549 GB, free: 2.152 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.5078, allocations: 281.7 kB / 0.5552 GB, free: 1.922 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.5078, allocations: 28.77 kB / 0.5552 GB, free: 1.891 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.508, allocations: 241 kB / 0.5555 GB, free: 1.699 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.837e-05/0.5081, allocations: 79.3 kB / 0.5555 GB, free: 1.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.5081, allocations: 7.312 kB / 0.5555 GB, free: 1.629 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5082, allocations: 345.9 kB / 0.5559 GB, free: 1.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.5084, allocations: 70.59 kB / 0.5559 GB, free: 1.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002459/0.5087, allocations: 214.7 kB / 0.5561 GB, free: 1.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.5089, allocations: 119.1 kB / 0.5563 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.5089, allocations: 0 / 0.5563 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005852/0.5095, allocations: 339.5 kB / 0.5566 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.5095, allocations: 8 kB / 0.5566 GB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.5095, allocations: 4 kB / 0.5566 GB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.5096, allocations: 8 kB / 0.5566 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.5099, allocations: 84.39 kB / 0.5567 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.5099, allocations: 8 kB / 0.5567 GB, free: 0.5664 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.5101, allocations: 13.31 kB / 0.5567 GB, free: 0.5586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.53e-05/0.5102, allocations: 15.31 kB / 0.5567 GB, free: 0.5469 MB / 362.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 (41): * Single equations (assignments): 41 * 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.0001939/0.5104, allocations: 186.7 kB / 0.5569 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.843e-05/0.5104, allocations: 31.62 kB / 0.5569 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004095/0.5109, allocations: 207.7 kB / 0.5571 GB, free: 204 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.5109, allocations: 7.984 kB / 0.5571 GB, free: 196 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5109, allocations: 0 / 0.5571 GB, free: 196 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.5109, allocations: 0 / 0.5571 GB, free: 196 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.5119, allocations: 0.6459 MB / 0.5578 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.5119, allocations: 4.031 kB / 0.5578 GB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002621/0.5122, allocations: 51.91 kB / 0.5578 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.5122, allocations: 0 / 0.5578 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.5123, allocations: 7.438 kB / 0.5578 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.5123, allocations: 4 kB / 0.5578 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/0.5123, allocations: 7.984 kB / 0.5578 GB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006783/0.513, allocations: 0.4987 MB / 0.5583 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.5131, allocations: 102.1 kB / 0.5584 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.5132, allocations: 14.64 kB / 0.5584 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.5134, allocations: 10.98 kB / 0.5584 GB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.5134, allocations: 13.53 kB / 0.5585 GB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.5135, allocations: 9.438 kB / 0.5585 GB, free: 14.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002549/0.5137, allocations: 214.5 kB / 0.5587 GB, free: 14.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5137, allocations: 0 / 0.5587 GB, free: 14.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004501/0.5142, allocations: 72.69 kB / 0.5587 GB, free: 14.69 MB / 378.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.motor.phi_el,machine.motor.w_el) * 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 (21): * Single equations (assignments): 20 * 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.001185/0.5154, allocations: 1.271 MB / 0.56 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005152/0.5159, allocations: 208.8 kB / 0.5602 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5159, allocations: 0 / 0.5602 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001899/0.5161, allocations: 90.14 kB / 0.5603 GB, free: 13.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000599/0.5167, allocations: 84 kB / 0.5603 GB, free: 13.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00506/0.5218, allocations: 4.983 MB / 0.5652 GB, free: 8.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004901/0.5223, allocations: 0.8293 MB / 0.566 GB, free: 7.473 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002651/0.5226, allocations: 55.25 kB / 0.5661 GB, free: 7.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.5227, allocations: 125.6 kB / 0.5662 GB, free: 7.375 MB / 378.7 MB Notification: Performance of SimCode: time 2.595e-06/0.5228, allocations: 0 / 0.5662 GB, free: 7.375 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02243/0.5452, allocations: 6.915 MB / 0.5729 GB, free: 492 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.5455, allocations: 173.2 kB / 0.5731 GB, free: 248 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.107/2.652, allocations: 0 / 0.5731 GB, free: 248 kB / 378.7 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/linux/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)