Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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: translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009854/0.0009854, allocations: 197.9 kB / 16.78 MB, free: 5.031 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 226.5 MB / 244.1 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008293/0.0008292, allocations: 99.88 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3681/0.3681, allocations: 44.83 MB / 393 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.000313, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3599, allocations: 62.96 MB / 0.5165 GB, free: 37.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1218/0.4817, allocations: 98.36 MB / 0.6125 GB, free: 7.023 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.482, allocations: 79.94 kB / 0.6126 GB, free: 6.945 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03429/0.5163, allocations: 13.68 MB / 0.626 GB, free: 9.203 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5163, allocations: 4 kB / 0.626 GB, free: 9.199 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.735e-05/0.5164, allocations: 23.98 kB / 0.626 GB, free: 9.176 MB / 442.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.001413/0.5178, allocations: 0.8999 MB / 0.6269 GB, free: 8.223 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.5178, allocations: 12.03 kB / 0.6269 GB, free: 8.211 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.518, allocations: 91.91 kB / 0.627 GB, free: 8.121 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006418/0.5186, allocations: 0.4948 MB / 0.6275 GB, free: 7.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.5187, allocations: 45.69 kB / 0.6275 GB, free: 7.543 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.538e-05/0.5188, allocations: 68.27 kB / 0.6276 GB, free: 7.477 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009856/0.5197, allocations: 0.5994 MB / 0.6281 GB, free: 6.855 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.5198, allocations: 4.172 kB / 0.6282 GB, free: 6.852 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.202e-05/0.5198, allocations: 31.94 kB / 0.6282 GB, free: 6.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.5199, allocations: 12 kB / 0.6282 GB, free: 6.809 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008443/0.5207, allocations: 445 kB / 0.6286 GB, free: 6.375 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002924/0.5236, allocations: 2.184 MB / 0.6308 GB, free: 4.098 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.5247, allocations: 0.6132 MB / 0.6314 GB, free: 3.441 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003172/0.5251, allocations: 180.8 kB / 0.6315 GB, free: 3.262 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.5251, allocations: 7.984 kB / 0.6315 GB, free: 3.254 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.5251, allocations: 35 kB / 0.6316 GB, free: 3.211 MB / 442.7 MB Notification: Performance of pre-optimization done (n=32): time 2.544e-06/0.5251, allocations: 4 kB / 0.6316 GB, free: 3.207 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.002173/0.5273, allocations: 1.207 MB / 0.6327 GB, free: 1.926 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.5274, allocations: 55.41 kB / 0.6328 GB, free: 1.859 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006212/0.528, allocations: 0.5183 MB / 0.6333 GB, free: 1.328 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.528, allocations: 37.7 kB / 0.6333 GB, free: 1.285 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.5283, allocations: 340.1 kB / 0.6337 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.949e-05/0.5284, allocations: 122.3 kB / 0.6338 GB, free: 0.8281 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.797e-05/0.5284, allocations: 4 kB / 0.6338 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5286, allocations: 366.8 kB / 0.6341 GB, free: 468 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.5289, allocations: 148.8 kB / 0.6343 GB, free: 316 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003313/0.5292, allocations: 232.9 kB / 0.6345 GB, free: 52 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006385/0.5298, allocations: 389 kB / 0.6349 GB, free: 15.64 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5299, allocations: 4 kB / 0.6349 GB, free: 15.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008641/0.5307, allocations: 0.4934 MB / 0.6354 GB, free: 15.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.057e-05/0.5308, allocations: 156.8 kB / 0.6355 GB, free: 14.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.5308, allocations: 4 kB / 0.6355 GB, free: 14.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.531, allocations: 24.84 kB / 0.6355 GB, free: 14.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.5314, allocations: 107.8 kB / 0.6356 GB, free: 14.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009952/0.5324, allocations: 1.295 MB / 0.6369 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.5327, allocations: 31.97 kB / 0.6369 GB, free: 13.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.875e-05/0.5327, allocations: 16 kB / 0.6369 GB, free: 13.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.024e-06/0.5328, allocations: 7.125 kB / 0.637 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006237/0.5334, allocations: 352.4 kB / 0.6373 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.5334, allocations: 0 / 0.6373 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.031e-05/0.5335, allocations: 33.12 kB / 0.6373 GB, free: 12.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/0.5338, allocations: 91.89 kB / 0.6374 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008754/0.5347, allocations: 1.28 MB / 0.6387 GB, free: 11.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.535, allocations: 19.98 kB / 0.6387 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.535, allocations: 12 kB / 0.6387 GB, free: 11.41 MB / 458.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 () * Number of clocked 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.0003612/0.5353, allocations: 265 kB / 0.6389 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-05/0.5354, allocations: 59.19 kB / 0.639 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.5355, allocations: 57.38 kB / 0.6391 GB, free: 11.03 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.5356, allocations: 8 kB / 0.6391 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.5356, allocations: 0 / 0.6391 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.5356, allocations: 4 kB / 0.6391 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.5372, allocations: 1.096 MB / 0.6401 GB, free: 9.855 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5372, allocations: 3.938 kB / 0.6401 GB, free: 9.852 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.5376, allocations: 75.91 kB / 0.6402 GB, free: 9.777 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.72e-05/0.5377, allocations: 20.84 kB / 0.6402 GB, free: 9.754 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.5377, allocations: 12.06 kB / 0.6402 GB, free: 9.742 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008373/0.5386, allocations: 1.276 MB / 0.6415 GB, free: 8.332 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5386, allocations: 12.12 kB / 0.6415 GB, free: 8.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.5396, allocations: 0.6501 MB / 0.6421 GB, free: 7.645 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.5398, allocations: 144.4 kB / 0.6423 GB, free: 7.484 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.5398, allocations: 4 kB / 0.6423 GB, free: 7.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.5401, allocations: 35.98 kB / 0.6423 GB, free: 7.445 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.5402, allocations: 19.97 kB / 0.6423 GB, free: 7.426 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.5402, allocations: 12 kB / 0.6423 GB, free: 7.414 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004239/0.5406, allocations: 366.8 kB / 0.6427 GB, free: 7.059 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5406, allocations: 0 / 0.6427 GB, free: 7.059 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000667/0.5413, allocations: 195.9 kB / 0.6429 GB, free: 6.867 MB / 458.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 () * Number of clocked 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.0003053/0.5416, allocations: 187.5 kB / 0.6431 GB, free: 6.684 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001298/0.5429, allocations: 0.7755 MB / 0.6438 GB, free: 5.883 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.543, allocations: 0 / 0.6438 GB, free: 5.883 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004085/0.5434, allocations: 283 kB / 0.6441 GB, free: 5.594 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006596/0.544, allocations: 104.2 kB / 0.6442 GB, free: 5.488 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.5463, allocations: 1.603 MB / 0.6457 GB, free: 3.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.5468, allocations: 0.8941 MB / 0.6466 GB, free: 2.914 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.547, allocations: 39.44 kB / 0.6467 GB, free: 2.875 MB / 458.7 MB Notification: Performance of SimCode: time 3.41e-07/0.547, allocations: 0 / 0.6467 GB, free: 2.875 MB / 458.7 MB Notification: Performance of Templates: time 0.0131/0.5601, allocations: 9.827 MB / 0.6563 GB, free: 9.059 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled --alarm=480 > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)