Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.723/1.723, 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.0009085/0.0009085, allocations: 99.62 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 45.15 MB / 383.8 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.983e-05/1.999e-05, allocations: 0 / 453.3 MB, free: 75.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.128, allocations: 63.25 MB / 0.5045 GB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.5875, allocations: 97.54 MB / 0.5997 GB, free: 4.73 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.5878, allocations: 74.27 kB / 0.5998 GB, free: 4.691 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02973/0.6175, allocations: 10.77 MB / 0.6103 GB, free: 11.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6176, allocations: 3.938 kB / 0.6103 GB, free: 11.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.365e-05/0.6177, allocations: 12 kB / 0.6103 GB, free: 11.9 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00141/0.6191, allocations: 0.6942 MB / 0.611 GB, free: 11.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.6191, allocations: 8.031 kB / 0.611 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002272/0.6194, allocations: 59.34 kB / 0.6111 GB, free: 11.13 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008937/0.6203, allocations: 394.7 kB / 0.6114 GB, free: 10.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.2e-05/0.6204, allocations: 20 kB / 0.6114 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.6205, allocations: 31.91 kB / 0.6115 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006573/0.6212, allocations: 247.5 kB / 0.6117 GB, free: 10.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006902/0.6219, allocations: 359.4 kB / 0.6121 GB, free: 10.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.873e-05/0.6219, allocations: 3.984 kB / 0.6121 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.622, allocations: 4 kB / 0.6121 GB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.622, allocations: 8 kB / 0.6121 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002774/0.6248, allocations: 1.609 MB / 0.6136 GB, free: 8.918 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007654/0.6256, allocations: 378 kB / 0.614 GB, free: 8.594 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.6257, allocations: 92.66 kB / 0.6141 GB, free: 8.535 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.6258, allocations: 7.984 kB / 0.6141 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.6258, allocations: 34.25 kB / 0.6141 GB, free: 8.488 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 2.294e-06/0.6258, allocations: 0 / 0.6141 GB, free: 8.488 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001291/0.6271, allocations: 0.623 MB / 0.6147 GB, free: 7.906 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.6272, allocations: 59.95 kB / 0.6148 GB, free: 7.836 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/0.6277, allocations: 303.3 kB / 0.6151 GB, free: 7.598 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.251e-05/0.6277, allocations: 25.7 kB / 0.6151 GB, free: 7.566 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002423/0.628, allocations: 291.3 kB / 0.6154 GB, free: 7.344 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.886e-05/0.6281, allocations: 86.25 kB / 0.6155 GB, free: 7.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.6281, allocations: 0 / 0.6155 GB, free: 7.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.6282, allocations: 346.9 kB / 0.6158 GB, free: 6.938 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.6284, allocations: 72.69 kB / 0.6159 GB, free: 6.898 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.6286, allocations: 130.3 kB / 0.616 GB, free: 6.781 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.6287, allocations: 90.03 kB / 0.6161 GB, free: 6.727 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.6287, allocations: 0 / 0.6161 GB, free: 6.727 MB / 410.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004776/0.6292, allocations: 283.8 kB / 0.6164 GB, free: 6.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003278/0.6296, allocations: 0.7072 MB / 0.617 GB, free: 5.754 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.6296, allocations: 0 / 0.617 GB, free: 5.754 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/0.6297, allocations: 23.84 kB / 0.6171 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002971/0.6301, allocations: 67.91 kB / 0.6171 GB, free: 5.664 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/0.6311, allocations: 1.234 MB / 0.6183 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.6313, allocations: 12.16 kB / 0.6183 GB, free: 4.348 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.6313, allocations: 11.94 kB / 0.6184 GB, free: 4.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.6314, allocations: 5.875 kB / 0.6184 GB, free: 4.336 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003639/0.6317, allocations: 207.1 kB / 0.6186 GB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.341e-06/0.6317, allocations: 4 kB / 0.6186 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.256e-05/0.6318, allocations: 31.58 kB / 0.6186 GB, free: 4.152 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002452/0.6321, allocations: 67.41 kB / 0.6187 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000854/0.633, allocations: 1.232 MB / 0.6199 GB, free: 2.789 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.6332, allocations: 4.031 kB / 0.6199 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.6332, allocations: 11 kB / 0.6199 GB, free: 2.777 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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.0001229/0.6333, allocations: 111.3 kB / 0.62 GB, free: 2.664 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003747/0.6337, allocations: 219.6 kB / 0.6202 GB, free: 2.484 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.57e-05/0.6338, allocations: 35.62 kB / 0.6202 GB, free: 2.449 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.636e-05/0.6339, allocations: 47.03 kB / 0.6203 GB, free: 2.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.6339, allocations: 4 kB / 0.6203 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.6339, allocations: 0 / 0.6203 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.6339, allocations: 3.984 kB / 0.6203 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.635, allocations: 0.7323 MB / 0.621 GB, free: 1.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.635, allocations: 4.062 kB / 0.621 GB, free: 1.781 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.6353, allocations: 55.91 kB / 0.6211 GB, free: 1.727 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.547e-05/0.6354, allocations: 24.34 kB / 0.6211 GB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.6354, allocations: 0 / 0.6211 GB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009686/0.6364, allocations: 1.232 MB / 0.6223 GB, free: 416 kB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.6364, allocations: 0 / 0.6223 GB, free: 416 kB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006424/0.6371, allocations: 459.7 kB / 0.6227 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.6372, allocations: 119 kB / 0.6228 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.6373, allocations: 7.938 kB / 0.6228 GB, free: 15.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.6375, allocations: 11.98 kB / 0.6229 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.6376, allocations: 19.61 kB / 0.6229 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.6376, allocations: 8 kB / 0.6229 GB, free: 15.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003323/0.638, allocations: 235.7 kB / 0.6231 GB, free: 15.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.638, allocations: 0 / 0.6231 GB, free: 15.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006978/0.6387, allocations: 135 kB / 0.6232 GB, free: 15.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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.001203/0.6399, allocations: 1.189 MB / 0.6244 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009744/0.6409, allocations: 0.5214 MB / 0.6249 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.6409, allocations: 0 / 0.6249 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002749/0.6412, allocations: 196.8 kB / 0.6251 GB, free: 13.79 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005067/0.6417, allocations: 64.08 kB / 0.6252 GB, free: 13.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.6435, allocations: 0.8236 MB / 0.626 GB, free: 12.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004212/0.644, allocations: 0.8468 MB / 0.6268 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002707/0.6443, allocations: 55.23 kB / 0.6268 GB, free: 12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002034/0.6445, allocations: 158.2 kB / 0.627 GB, free: 11.96 MB / 426.7 MB Notification: Performance of SimCode: time 7.02e-07/0.6445, allocations: 4 kB / 0.627 GB, free: 11.95 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.6748, allocations: 7.593 MB / 0.6344 GB, free: 4.398 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.675, allocations: 152 kB / 0.6345 GB, free: 4.207 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.274/2.949, allocations: 3.938 kB / 0.6346 GB, free: 4.203 MB / 426.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)