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.001555/0.001555, allocations: 175.1 kB / 13.63 MB, free: 1.684 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.929/1.929, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001006/0.001006, allocations: 82.7 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2443/0.2443, allocations: 37.98 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.005e-05/4.023e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1299, allocations: 56.32 MB / 474.1 MB, free: 4.695 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5008/0.6308, allocations: 99.43 MB / 0.5601 GB, free: 3.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.6311, allocations: 94.06 kB / 0.5602 GB, free: 3.047 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03107/0.6622, allocations: 11.42 MB / 0.5714 GB, free: 9.328 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.6623, allocations: 4 kB / 0.5714 GB, free: 9.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.001e-05/0.6623, allocations: 8 kB / 0.5714 GB, free: 9.316 MB / 378.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.001367/0.6637, allocations: 0.6228 MB / 0.572 GB, free: 8.676 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.6637, allocations: 12.03 kB / 0.572 GB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.6639, allocations: 80.09 kB / 0.5721 GB, free: 8.598 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.6641, allocations: 51.39 kB / 0.5721 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.6655, allocations: 0.5428 MB / 0.5727 GB, free: 8.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.6656, allocations: 65.47 kB / 0.5727 GB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.556e-05/0.6657, allocations: 38.88 kB / 0.5728 GB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007662/0.6665, allocations: 418 kB / 0.5732 GB, free: 7.645 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.811e-05/0.6666, allocations: 4 kB / 0.5732 GB, free: 7.641 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.008e-05/0.6666, allocations: 14.56 kB / 0.5732 GB, free: 7.637 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.6666, allocations: 8 kB / 0.5732 GB, free: 7.629 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004919/0.6671, allocations: 255.6 kB / 0.5734 GB, free: 7.457 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.6698, allocations: 1.867 MB / 0.5753 GB, free: 5.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.6702, allocations: 176.9 kB / 0.5754 GB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.6703, allocations: 63.05 kB / 0.5755 GB, free: 5.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.6703, allocations: 4 kB / 0.5755 GB, free: 5.516 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.6704, allocations: 42.48 kB / 0.5755 GB, free: 5.465 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 2.846e-06/0.6704, allocations: 0 / 0.5755 GB, free: 5.465 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.00127/0.6717, allocations: 0.6433 MB / 0.5762 GB, free: 4.848 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.6717, allocations: 110.5 kB / 0.5763 GB, free: 4.719 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.6721, allocations: 279.4 kB / 0.5765 GB, free: 4.484 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.6721, allocations: 25.7 kB / 0.5766 GB, free: 4.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.6723, allocations: 247 kB / 0.5768 GB, free: 4.254 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.956e-05/0.6724, allocations: 65.66 kB / 0.5768 GB, free: 4.199 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.15e-05/0.6724, allocations: 3.625 kB / 0.5769 GB, free: 4.199 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.6726, allocations: 353.2 kB / 0.5772 GB, free: 3.859 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.6727, allocations: 64.09 kB / 0.5773 GB, free: 3.816 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.6729, allocations: 196.7 kB / 0.5774 GB, free: 3.598 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.6731, allocations: 96.03 kB / 0.5775 GB, free: 3.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.6731, allocations: 8 kB / 0.5775 GB, free: 3.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004586/0.6736, allocations: 323.2 kB / 0.5778 GB, free: 3.266 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.6736, allocations: 8.562 kB / 0.5779 GB, free: 3.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.6736, allocations: 8 kB / 0.5779 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.6736, allocations: 8 kB / 0.5779 GB, free: 3.242 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.6739, allocations: 79.08 kB / 0.5779 GB, free: 3.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.657e-05/0.674, allocations: 11.94 kB / 0.578 GB, free: 3.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.6742, allocations: 11.38 kB / 0.578 GB, free: 3.148 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.6742, allocations: 14.69 kB / 0.578 GB, free: 3.137 MB / 378.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 () * 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.000102/0.6743, allocations: 124.5 kB / 0.5781 GB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.8e-05/0.6744, allocations: 39.58 kB / 0.5781 GB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003242/0.6747, allocations: 193.2 kB / 0.5783 GB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.6748, allocations: 4 kB / 0.5783 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.6748, allocations: 0 / 0.5783 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.6748, allocations: 0 / 0.5783 GB, free: 2.832 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008039/0.6756, allocations: 0.6142 MB / 0.5789 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.6756, allocations: 0 / 0.5789 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.6759, allocations: 43.95 kB / 0.579 GB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.6759, allocations: 7.938 kB / 0.579 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/0.6759, allocations: 11.98 kB / 0.579 GB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.6759, allocations: 0 / 0.579 GB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6759, allocations: 0 / 0.579 GB, free: 2.215 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004829/0.6764, allocations: 478.3 kB / 0.5794 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.513e-05/0.6765, allocations: 104.8 kB / 0.5795 GB, free: 1.656 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.6765, allocations: 7.438 kB / 0.5795 GB, free: 1.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.6767, allocations: 11.47 kB / 0.5796 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.627e-05/0.6768, allocations: 15.88 kB / 0.5796 GB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.6768, allocations: 11.88 kB / 0.5796 GB, free: 1.621 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002192/0.6771, allocations: 212.1 kB / 0.5798 GB, free: 1.449 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6771, allocations: 0 / 0.5798 GB, free: 1.449 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004067/0.6775, allocations: 83.55 kB / 0.5799 GB, free: 1.375 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.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.001068/0.6785, allocations: 1.237 MB / 0.5811 GB, free: 172 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003308/0.6789, allocations: 181.3 kB / 0.5813 GB, free: 36 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.6789, allocations: 1.125 kB / 0.5813 GB, free: 36 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001505/0.6791, allocations: 75.09 kB / 0.5813 GB, free: 15.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005566/0.6796, allocations: 80.67 kB / 0.5814 GB, free: 15.92 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.6812, allocations: 0.778 MB / 0.5822 GB, free: 15.17 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004349/0.6817, allocations: 0.8262 MB / 0.583 GB, free: 14.33 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002044/0.6819, allocations: 55.25 kB / 0.583 GB, free: 14.27 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.6821, allocations: 123.6 kB / 0.5831 GB, free: 14.23 MB / 394.7 MB Notification: Performance of SimCode: time 7.22e-07/0.6821, allocations: 0 / 0.5831 GB, free: 14.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01911/0.7012, allocations: 6.85 MB / 0.5898 GB, free: 7.43 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.7015, allocations: 169 kB / 0.59 GB, free: 7.195 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.121/2.823, allocations: 0 / 0.59 GB, free: 7.195 MB / 394.7 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