Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001278/0.001278, allocations: 174.8 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.857/1.857, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.000965/0.000965, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1616/0.1616, allocations: 37.97 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.387e-05/4.388e-05, allocations: 8 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1486, allocations: 56.32 MB / 474.1 MB, free: 4.707 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4657/0.6143, allocations: 102.6 MB / 0.5633 GB, free: 15.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001566/0.6159, allocations: 0.6897 MB / 0.5639 GB, free: 15.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04599/0.662, allocations: 16.73 MB / 0.5803 GB, free: 1.418 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.662, allocations: 0 / 0.5803 GB, free: 1.418 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.691e-05/0.6621, allocations: 12 kB / 0.5803 GB, free: 1.406 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001426/0.6635, allocations: 0.7803 MB / 0.5811 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.6636, allocations: 8.031 kB / 0.5811 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001113/0.6637, allocations: 84.53 kB / 0.5811 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.6638, allocations: 67.14 kB / 0.5812 GB, free: 484 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.6656, allocations: 0.7483 MB / 0.5819 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.6657, allocations: 36.19 kB / 0.582 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.178e-05/0.6658, allocations: 46.91 kB / 0.582 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008313/0.6666, allocations: 0.5044 MB / 0.5825 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.6666, allocations: 3.984 kB / 0.5825 GB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.6667, allocations: 25.31 kB / 0.5825 GB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.631e-05/0.6667, allocations: 11.95 kB / 0.5825 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005321/0.6673, allocations: 321.2 kB / 0.5829 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/0.67, allocations: 2.088 MB / 0.5849 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004335/0.6705, allocations: 232.5 kB / 0.5851 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.6706, allocations: 78.62 kB / 0.5852 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.6707, allocations: 4 kB / 0.5852 GB, free: 12.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.6709, allocations: 160.8 kB / 0.5853 GB, free: 12.84 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.434e-06/0.671, allocations: 0 / 0.5853 GB, free: 12.84 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.001636/0.6726, allocations: 0.8626 MB / 0.5862 GB, free: 12.03 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.452e-05/0.6727, allocations: 132.5 kB / 0.5863 GB, free: 11.87 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004925/0.6732, allocations: 373.9 kB / 0.5867 GB, free: 11.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.6732, allocations: 36.81 kB / 0.5867 GB, free: 11.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.6735, allocations: 291.8 kB / 0.587 GB, free: 11.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.736e-05/0.6736, allocations: 93.3 kB / 0.5871 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.737e-05/0.6736, allocations: 11.25 kB / 0.5871 GB, free: 11.24 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.6737, allocations: 349.1 kB / 0.5874 GB, free: 10.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.6739, allocations: 78.48 kB / 0.5875 GB, free: 10.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.6742, allocations: 226 kB / 0.5877 GB, free: 10.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.6744, allocations: 118.5 kB / 0.5878 GB, free: 10.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6744, allocations: 4 kB / 0.5878 GB, free: 10.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008188/0.6752, allocations: 433.6 kB / 0.5882 GB, free: 10.18 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.6752, allocations: 14.48 kB / 0.5883 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.6753, allocations: 4 kB / 0.5883 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004074/0.6757, allocations: 95.72 kB / 0.5883 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.6759, allocations: 75.47 kB / 0.5884 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002109/0.6781, allocations: 1.682 MB / 0.5901 GB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002925/0.6784, allocations: 22.42 kB / 0.5901 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.6784, allocations: 23.31 kB / 0.5901 GB, free: 8.359 MB / 394.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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.6785, allocations: 123.7 kB / 0.5902 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.6786, allocations: 51.38 kB / 0.5903 GB, free: 8.191 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005944/0.6792, allocations: 279.1 kB / 0.5905 GB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.6792, allocations: 4 kB / 0.5905 GB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.6792, allocations: 0 / 0.5905 GB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.6793, allocations: 7.984 kB / 0.5906 GB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.6805, allocations: 0.7784 MB / 0.5913 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.6805, allocations: 0 / 0.5913 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.6808, allocations: 47.17 kB / 0.5914 GB, free: 7.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000202/0.681, allocations: 43.38 kB / 0.5914 GB, free: 7.211 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/0.681, allocations: 19.56 kB / 0.5914 GB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001288/0.6823, allocations: 1.427 MB / 0.5928 GB, free: 5.734 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.6823, allocations: 4.062 kB / 0.5928 GB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007089/0.683, allocations: 497.7 kB / 0.5933 GB, free: 5.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.6832, allocations: 136 kB / 0.5934 GB, free: 5.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.6833, allocations: 11.81 kB / 0.5934 GB, free: 5.152 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.6835, allocations: 15.8 kB / 0.5934 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.6836, allocations: 19.92 kB / 0.5935 GB, free: 5.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.6836, allocations: 11.38 kB / 0.5935 GB, free: 5.113 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003482/0.684, allocations: 290.1 kB / 0.5938 GB, free: 4.895 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.924e-06/0.684, allocations: 0 / 0.5938 GB, free: 4.895 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006105/0.6846, allocations: 139.2 kB / 0.5939 GB, free: 4.773 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001991/0.6866, allocations: 1.439 MB / 0.5953 GB, free: 3.434 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008727/0.6875, allocations: 382.2 kB / 0.5957 GB, free: 3.117 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.6875, allocations: 4 kB / 0.5957 GB, free: 3.113 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003547/0.6879, allocations: 226.3 kB / 0.5959 GB, free: 2.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006303/0.6885, allocations: 120.9 kB / 0.596 GB, free: 2.816 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.6907, allocations: 1.041 MB / 0.597 GB, free: 1.832 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.6913, allocations: 0.8991 MB / 0.5979 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002986/0.6916, allocations: 76.16 kB / 0.598 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.6918, allocations: 173.8 kB / 0.5981 GB, free: 0.793 MB / 394.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6918, allocations: 0 / 0.5981 GB, free: 0.793 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03039/0.7222, allocations: 10.85 MB / 0.6087 GB, free: 5.93 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.7225, allocations: 232.3 kB / 0.6089 GB, free: 5.676 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/3.096, allocations: 0 / 0.6089 GB, free: 5.676 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat does not exist to compare? outputFormat=mat