Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_latest_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.001099/0.0011, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008501/0.0008502, allocations: 86.92 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1737/0.1737, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.869e-05/1.872e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 56.33 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4028/0.5087, allocations: 98.76 MB / 0.5525 GB, free: 12 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.5091, allocations: 96.86 kB / 0.5526 GB, free: 11.91 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02968/0.5388, allocations: 11.29 MB / 0.5636 GB, free: 0.4961 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5388, allocations: 0 / 0.5636 GB, free: 0.4961 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.812e-05/0.5388, allocations: 8 kB / 0.5636 GB, free: 500 kB / 395.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.0009939/0.5398, allocations: 0.6293 MB / 0.5642 GB, free: 15.81 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.5399, allocations: 8.031 kB / 0.5642 GB, free: 15.8 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.859e-05/0.54, allocations: 51.39 kB / 0.5643 GB, free: 15.75 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.5411, allocations: 0.5533 MB / 0.5648 GB, free: 15.16 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.319e-05/0.5412, allocations: 46.47 kB / 0.5649 GB, free: 15.11 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.032e-05/0.5412, allocations: 20 kB / 0.5649 GB, free: 15.09 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004039/0.5417, allocations: 225.5 kB / 0.5651 GB, free: 14.87 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000544/0.5422, allocations: 369.4 kB / 0.5655 GB, free: 14.46 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.5422, allocations: 4 kB / 0.5655 GB, free: 14.46 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.938e-05/0.5423, allocations: 0 / 0.5655 GB, free: 14.46 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.5423, allocations: 8 kB / 0.5655 GB, free: 14.45 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.5445, allocations: 1.798 MB / 0.5672 GB, free: 12.55 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.5447, allocations: 160.4 kB / 0.5674 GB, free: 12.36 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.5448, allocations: 62.58 kB / 0.5674 GB, free: 12.29 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.154e-05/0.5449, allocations: 4 kB / 0.5674 GB, free: 12.29 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.5449, allocations: 42.55 kB / 0.5675 GB, free: 12.24 MB / 411.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.5449, allocations: 0 / 0.5675 GB, free: 12.24 MB / 411.1 MB Notification: Performance of matching and sorting (n=19): time 0.0009507/0.5459, allocations: 0.6062 MB / 0.5681 GB, free: 11.58 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.5459, allocations: 110.8 kB / 0.5682 GB, free: 11.45 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.5462, allocations: 237.1 kB / 0.5684 GB, free: 11.2 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.5462, allocations: 25.7 kB / 0.5684 GB, free: 11.17 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.5464, allocations: 251.8 kB / 0.5687 GB, free: 10.92 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.175e-05/0.5464, allocations: 63.11 kB / 0.5687 GB, free: 10.86 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.5464, allocations: 0 / 0.5687 GB, free: 10.86 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5466, allocations: 342.8 kB / 0.5691 GB, free: 10.52 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.5467, allocations: 56.66 kB / 0.5691 GB, free: 10.46 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.5469, allocations: 185.5 kB / 0.5693 GB, free: 10.21 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.547, allocations: 92.83 kB / 0.5694 GB, free: 10.12 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.547, allocations: 4 kB / 0.5694 GB, free: 10.12 MB / 411.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003859/0.5474, allocations: 283.6 kB / 0.5697 GB, free: 9.84 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.5474, allocations: 4.562 kB / 0.5697 GB, free: 9.836 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.5475, allocations: 8 kB / 0.5697 GB, free: 9.828 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.5475, allocations: 11.95 kB / 0.5697 GB, free: 9.816 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.5478, allocations: 79.84 kB / 0.5698 GB, free: 9.738 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.07e-05/0.5478, allocations: 11.98 kB / 0.5698 GB, free: 9.727 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001659/0.548, allocations: 7.906 kB / 0.5698 GB, free: 9.719 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.266e-05/0.548, allocations: 16 kB / 0.5698 GB, free: 9.703 MB / 411.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 () * 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 8.469e-05/0.5481, allocations: 116.8 kB / 0.5699 GB, free: 9.582 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002639/0.5484, allocations: 169.2 kB / 0.5701 GB, free: 9.41 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.139e-05/0.5485, allocations: 31.58 kB / 0.5701 GB, free: 9.379 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.5487, allocations: 175.9 kB / 0.5703 GB, free: 9.199 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.5488, allocations: 3.984 kB / 0.5703 GB, free: 9.195 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.5488, allocations: 4 kB / 0.5703 GB, free: 9.191 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.5488, allocations: 0 / 0.5703 GB, free: 9.191 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007458/0.5495, allocations: 0.5541 MB / 0.5708 GB, free: 8.59 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.5495, allocations: 4 kB / 0.5708 GB, free: 8.586 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.5498, allocations: 47.91 kB / 0.5709 GB, free: 8.539 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.5498, allocations: 0 / 0.5709 GB, free: 8.539 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.5498, allocations: 4 kB / 0.5709 GB, free: 8.535 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5498, allocations: 0 / 0.5709 GB, free: 8.535 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.5498, allocations: 4 kB / 0.5709 GB, free: 8.531 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004654/0.5503, allocations: 457.1 kB / 0.5713 GB, free: 8.043 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.5504, allocations: 100.7 kB / 0.5714 GB, free: 7.926 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.5505, allocations: 8.031 kB / 0.5714 GB, free: 7.918 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001788/0.5506, allocations: 8 kB / 0.5714 GB, free: 7.91 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.5507, allocations: 19.94 kB / 0.5714 GB, free: 7.891 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.5507, allocations: 4 kB / 0.5714 GB, free: 7.887 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0001567/0.5509, allocations: 184.6 kB / 0.5716 GB, free: 7.707 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5509, allocations: 0 / 0.5716 GB, free: 7.707 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004088/0.5513, allocations: 72 kB / 0.5717 GB, free: 7.637 MB / 411.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 () * 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.000909/0.5522, allocations: 1.207 MB / 0.5729 GB, free: 6.387 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0002921/0.5525, allocations: 167.8 kB / 0.573 GB, free: 6.223 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5525, allocations: 1.125 kB / 0.573 GB, free: 6.223 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.5526, allocations: 75.86 kB / 0.5731 GB, free: 6.148 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.5532, allocations: 68.86 kB / 0.5732 GB, free: 6.082 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.5547, allocations: 0.7522 MB / 0.5739 GB, free: 5.281 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004302/0.5551, allocations: 0.8224 MB / 0.5747 GB, free: 4.434 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0002042/0.5553, allocations: 47.25 kB / 0.5747 GB, free: 4.391 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.5555, allocations: 119.4 kB / 0.5749 GB, free: 4.273 MB / 411.1 MB Notification: Performance of SimCode: time 2.61e-07/0.5555, allocations: 3.938 kB / 0.5749 GB, free: 4.27 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02476/0.5803, allocations: 5.624 MB / 0.5804 GB, free: 14.66 MB / 427.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/0.5805, allocations: 146.8 kB / 0.5805 GB, free: 14.47 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.002/2.582, allocations: 0 / 0.5805 GB, free: 14.47 MB / 427.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat does not exist to compare? outputFormat=mat