Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002345/0.002345, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009485/0.0009484, allocations: 99.05 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2293/0.2293, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.777e-05/1.79e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1153, allocations: 63.25 MB / 0.5045 GB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5005/0.6157, allocations: 97.74 MB / 0.5999 GB, free: 4.586 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.616, allocations: 69.84 kB / 0.6 GB, free: 4.551 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03647/0.6525, allocations: 13.49 MB / 0.6131 GB, free: 9.547 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.6526, allocations: 0 / 0.6131 GB, free: 9.547 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.5e-05/0.6527, allocations: 27.92 kB / 0.6132 GB, free: 9.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001746/0.6544, allocations: 0.8286 MB / 0.614 GB, free: 8.688 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.6545, allocations: 8.906 kB / 0.614 GB, free: 8.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.6548, allocations: 86.95 kB / 0.6141 GB, free: 8.594 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009661/0.6557, allocations: 484.4 kB / 0.6145 GB, free: 8.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.23e-05/0.6558, allocations: 20 kB / 0.6145 GB, free: 8.141 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.6559, allocations: 43.25 kB / 0.6146 GB, free: 8.102 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006826/0.6566, allocations: 319.7 kB / 0.6149 GB, free: 7.914 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009311/0.6575, allocations: 472.5 kB / 0.6153 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.089e-05/0.6576, allocations: 3.984 kB / 0.6153 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.6576, allocations: 11.88 kB / 0.6154 GB, free: 7.543 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.6576, allocations: 16 kB / 0.6154 GB, free: 7.527 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003613/0.6613, allocations: 2.076 MB / 0.6174 GB, free: 5.793 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009988/0.6623, allocations: 0.508 MB / 0.6179 GB, free: 5.348 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.6625, allocations: 125.3 kB / 0.618 GB, free: 5.27 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.868e-05/0.6626, allocations: 4 kB / 0.618 GB, free: 5.266 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.261e-05/0.6626, allocations: 45.73 kB / 0.6181 GB, free: 5.215 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 3.216e-06/0.6626, allocations: 0 / 0.6181 GB, free: 5.215 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.001783/0.6644, allocations: 0.7766 MB / 0.6188 GB, free: 4.512 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.6645, allocations: 51.41 kB / 0.6189 GB, free: 4.449 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006462/0.6652, allocations: 394.4 kB / 0.6192 GB, free: 4.148 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.6652, allocations: 29.7 kB / 0.6193 GB, free: 4.113 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.6655, allocations: 347 kB / 0.6196 GB, free: 3.855 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.6656, allocations: 117.8 kB / 0.6197 GB, free: 3.754 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.802e-05/0.6657, allocations: 0 / 0.6197 GB, free: 3.754 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.6659, allocations: 363.1 kB / 0.6201 GB, free: 3.414 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.6661, allocations: 93.75 kB / 0.6202 GB, free: 3.359 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002529/0.6664, allocations: 179.4 kB / 0.6203 GB, free: 3.203 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002296/0.6666, allocations: 121 kB / 0.6204 GB, free: 3.133 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6666, allocations: 8 kB / 0.6204 GB, free: 3.125 MB / 410.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006699/0.6673, allocations: 376.7 kB / 0.6208 GB, free: 2.832 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004675/0.6678, allocations: 0.8661 MB / 0.6216 GB, free: 1.914 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.6678, allocations: 11.89 kB / 0.6217 GB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.668, allocations: 27.78 kB / 0.6217 GB, free: 1.875 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000429/0.6684, allocations: 111 kB / 0.6218 GB, free: 1.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.6695, allocations: 1.235 MB / 0.623 GB, free: 480 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.6698, allocations: 20.58 kB / 0.623 GB, free: 460 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/0.6699, allocations: 19.88 kB / 0.623 GB, free: 444 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.6699, allocations: 5.562 kB / 0.623 GB, free: 440 kB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005086/0.6704, allocations: 282.9 kB / 0.6233 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.6704, allocations: 0 / 0.6233 GB, free: 232 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.025e-05/0.6705, allocations: 24.36 kB / 0.6233 GB, free: 208 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.6709, allocations: 99.3 kB / 0.6234 GB, free: 112 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009599/0.6718, allocations: 1.237 MB / 0.6246 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002563/0.6721, allocations: 8.156 kB / 0.6246 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.6722, allocations: 19.64 kB / 0.6247 GB, free: 14.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.6723, allocations: 117 kB / 0.6248 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004644/0.6728, allocations: 279.5 kB / 0.625 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.6729, allocations: 47.44 kB / 0.6251 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001187/0.673, allocations: 55.42 kB / 0.6251 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.673, allocations: 8 kB / 0.6251 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.673, allocations: 0 / 0.6251 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.673, allocations: 0 / 0.6251 GB, free: 14.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.6745, allocations: 0.9041 MB / 0.626 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6746, allocations: 4.062 kB / 0.626 GB, free: 13.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.6749, allocations: 79.39 kB / 0.6261 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-05/0.675, allocations: 23.91 kB / 0.6261 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.6751, allocations: 0 / 0.6261 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.6762, allocations: 1.224 MB / 0.6273 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.6762, allocations: 0 / 0.6273 GB, free: 12.22 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007931/0.677, allocations: 0.5446 MB / 0.6279 GB, free: 11.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.6772, allocations: 127.4 kB / 0.628 GB, free: 11.63 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.748e-05/0.6772, allocations: 8 kB / 0.628 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.6775, allocations: 27.98 kB / 0.628 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.186e-05/0.6776, allocations: 27.41 kB / 0.628 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.088e-05/0.6776, allocations: 11.19 kB / 0.6281 GB, free: 11.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004067/0.6781, allocations: 299.3 kB / 0.6283 GB, free: 11.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6781, allocations: 0 / 0.6283 GB, free: 11.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007548/0.6788, allocations: 156 kB / 0.6285 GB, free: 11.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 31 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001448/0.6803, allocations: 1.31 MB / 0.6298 GB, free: 9.977 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.6814, allocations: 0.6442 MB / 0.6304 GB, free: 9.453 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6814, allocations: 4.125 kB / 0.6304 GB, free: 9.449 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.6817, allocations: 231.8 kB / 0.6306 GB, free: 9.254 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005565/0.6823, allocations: 79.95 kB / 0.6307 GB, free: 9.191 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002219/0.6845, allocations: 1.03 MB / 0.6317 GB, free: 8.191 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.685, allocations: 0.9026 MB / 0.6326 GB, free: 7.262 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003656/0.6854, allocations: 86.2 kB / 0.6327 GB, free: 7.176 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.6857, allocations: 217.4 kB / 0.6329 GB, free: 7.129 MB / 426.7 MB Notification: Performance of SimCode: time 5.31e-07/0.6857, allocations: 0 / 0.6329 GB, free: 7.129 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.7209, allocations: 10.09 MB / 0.6427 GB, free: 13.09 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.7211, allocations: 147.1 kB / 0.6429 GB, free: 12.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.297/3.018, allocations: 0 / 0.6429 GB, free: 12.89 MB / 442.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)