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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 204.2 kB / 8.54 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.184/1.184, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008888/0.0008888, allocations: 92.45 kB / 286.3 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.1856/0.1856, allocations: 45.15 MB / 383.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1914/0.3771, allocations: 69.37 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08466/0.4617, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2509/0.7127, allocations: 97.46 MB / 0.599 GB, free: 5.398 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.7129, allocations: 77.06 kB / 0.5991 GB, free: 5.359 MB / 394.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.02897/0.7419, allocations: 11.23 MB / 0.6101 GB, free: 12.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.742, allocations: 8 kB / 0.6101 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001245/0.7421, allocations: 63.25 kB / 0.6101 GB, free: 12.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.7427, allocations: 396.5 kB / 0.6105 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.7427, allocations: 16 kB / 0.6105 GB, free: 11.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.907e-05/0.7428, allocations: 31.25 kB / 0.6106 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004687/0.7433, allocations: 240.7 kB / 0.6108 GB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005988/0.7439, allocations: 365.6 kB / 0.6111 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.7439, allocations: 7.906 kB / 0.6112 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.744, allocations: 0 / 0.6112 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.744, allocations: 12 kB / 0.6112 GB, free: 11.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.7465, allocations: 1.611 MB / 0.6127 GB, free: 9.812 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005729/0.747, allocations: 232.1 kB / 0.613 GB, free: 9.625 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.7472, allocations: 96.8 kB / 0.6131 GB, free: 9.562 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.7473, allocations: 8 kB / 0.6131 GB, free: 9.555 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.7473, allocations: 37.94 kB / 0.6131 GB, free: 9.512 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.226e-06/0.7473, allocations: 0 / 0.6131 GB, free: 9.512 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.001062/0.7484, allocations: 0.6212 MB / 0.6137 GB, free: 8.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.7484, allocations: 55.41 kB / 0.6138 GB, free: 8.863 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003344/0.7488, allocations: 302.8 kB / 0.614 GB, free: 8.633 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.787e-05/0.7488, allocations: 29.7 kB / 0.6141 GB, free: 8.598 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.7489, allocations: 235.1 kB / 0.6143 GB, free: 8.387 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.749, allocations: 88.59 kB / 0.6144 GB, free: 8.312 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.749, allocations: 0 / 0.6144 GB, free: 8.312 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.7492, allocations: 345.4 kB / 0.6147 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.7493, allocations: 71.12 kB / 0.6148 GB, free: 7.941 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.7494, allocations: 130 kB / 0.6149 GB, free: 7.824 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.7496, allocations: 88.59 kB / 0.615 GB, free: 7.773 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.7496, allocations: 4 kB / 0.615 GB, free: 7.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004563/0.7501, allocations: 287.2 kB / 0.6153 GB, free: 7.539 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002464/0.7503, allocations: 0.6966 MB / 0.6159 GB, free: 6.801 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.7503, allocations: 8 kB / 0.616 GB, free: 6.793 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001259/0.7505, allocations: 24.34 kB / 0.616 GB, free: 6.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003141/0.7508, allocations: 71.41 kB / 0.616 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000886/0.7517, allocations: 1.226 MB / 0.6172 GB, free: 5.398 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.7519, allocations: 16.14 kB / 0.6173 GB, free: 5.383 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.752, allocations: 11.81 kB / 0.6173 GB, free: 5.375 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.813e-06/0.752, allocations: 4 kB / 0.6173 GB, free: 5.371 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003657/0.7523, allocations: 206.3 kB / 0.6175 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.7523, allocations: 4 kB / 0.6175 GB, free: 5.219 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.515e-05/0.7524, allocations: 24.39 kB / 0.6175 GB, free: 5.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/0.7527, allocations: 71.41 kB / 0.6176 GB, free: 5.129 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000873/0.7536, allocations: 1.235 MB / 0.6188 GB, free: 3.816 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.7538, allocations: 4.031 kB / 0.6188 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.7538, allocations: 15.44 kB / 0.6188 GB, free: 3.801 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 9.819e-05/0.7539, allocations: 113 kB / 0.6189 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.536e-05/0.754, allocations: 31.62 kB / 0.6189 GB, free: 3.652 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.066e-05/0.7541, allocations: 40.55 kB / 0.619 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.7541, allocations: 3.906 kB / 0.619 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.7541, allocations: 0 / 0.619 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.7541, allocations: 7.984 kB / 0.619 GB, free: 3.621 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009714/0.7551, allocations: 0.7303 MB / 0.6197 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.7551, allocations: 0 / 0.6197 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00029/0.7554, allocations: 59.34 kB / 0.6197 GB, free: 2.949 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.096e-05/0.7555, allocations: 20.67 kB / 0.6198 GB, free: 2.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.7555, allocations: 8.047 kB / 0.6198 GB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008472/0.7564, allocations: 1.227 MB / 0.621 GB, free: 1.613 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.7564, allocations: 8.031 kB / 0.621 GB, free: 1.605 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005291/0.7569, allocations: 443.5 kB / 0.6214 GB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007747/0.7577, allocations: 0.9085 MB / 0.6223 GB, free: 424 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.247e-05/0.7578, allocations: 119.2 kB / 0.6224 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/0.7578, allocations: 0 / 0.6224 GB, free: 292 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.7581, allocations: 15.98 kB / 0.6224 GB, free: 276 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.7581, allocations: 19.22 kB / 0.6224 GB, free: 260 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.7582, allocations: 4 kB / 0.6224 GB, free: 256 kB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002331/0.7584, allocations: 240.9 kB / 0.6227 GB, free: 68 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.001695/0.7601, allocations: 142.1 kB / 0.6228 GB, free: 15.93 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.0002348/0.7603, allocations: 180.7 kB / 0.623 GB, free: 15.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007349/0.7611, allocations: 0.5159 MB / 0.6235 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.7611, allocations: 3.938 kB / 0.6235 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002817/0.7614, allocations: 202.6 kB / 0.6237 GB, free: 15.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003994/0.7618, allocations: 61.23 kB / 0.6237 GB, free: 15.09 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.7633, allocations: 0.7427 MB / 0.6245 GB, free: 14.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.7638, allocations: 0.8876 MB / 0.6253 GB, free: 13.46 MB / 426.7 MB Notification: Performance of SimCode: time 2.71e-07/0.7638, allocations: 0 / 0.6253 GB, free: 13.46 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)