Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009128/0.0009128, allocations: 199 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.5 MB / 243.1 MB, free: 14.31 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007608/0.0007608, allocations: 91.19 kB / 295.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1794/0.1794, allocations: 44.83 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002659/0.000266, allocations: 4 kB / 464.7 MB, free: 49.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09081, allocations: 62.95 MB / 0.5153 GB, free: 2.781 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.18/0.2708, allocations: 3.457 MB / 0.5187 GB, free: 9.848 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.273, allocations: 1.376 MB / 0.52 GB, free: 9.703 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00025/0.2733, allocations: 17.47 kB / 0.5201 GB, free: 9.695 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005054/0.2738, allocations: 213.7 kB / 0.5203 GB, free: 9.629 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.274, allocations: 108.5 kB / 0.5204 GB, free: 9.582 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.2743, allocations: 126.8 kB / 0.5205 GB, free: 9.574 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.2748, allocations: 0.5618 MB / 0.521 GB, free: 9.453 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.2751, allocations: 201.2 kB / 0.5212 GB, free: 9.418 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.2754, allocations: 183.5 kB / 0.5214 GB, free: 9.367 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.2757, allocations: 207 kB / 0.5216 GB, free: 9.297 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.254e-05/0.2757, allocations: 25.91 kB / 0.5216 GB, free: 9.297 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.22e-05/0.2758, allocations: 25.88 kB / 0.5216 GB, free: 9.297 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.652e-05/0.2759, allocations: 88.09 kB / 0.5217 GB, free: 9.242 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.872e-05/0.276, allocations: 122.6 kB / 0.5218 GB, free: 9.156 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005231/0.2765, allocations: 0.5309 MB / 0.5224 GB, free: 9.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2765, allocations: 0.6094 kB / 0.5224 GB, free: 9.055 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2765, allocations: 0 / 0.5224 GB, free: 9.055 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.2765, allocations: 0 / 0.5224 GB, free: 9.055 MB / 346.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.001023/0.2775, allocations: 0.7558 MB / 0.5231 GB, free: 8.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.2776, allocations: 8.406 kB / 0.5231 GB, free: 8.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.982e-05/0.2777, allocations: 66.38 kB / 0.5232 GB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004173/0.2781, allocations: 396.5 kB / 0.5236 GB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.2781, allocations: 35.12 kB / 0.5236 GB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/0.2782, allocations: 46.86 kB / 0.5236 GB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007355/0.2789, allocations: 453.7 kB / 0.5241 GB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.279, allocations: 6.125 kB / 0.5241 GB, free: 7.891 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.279, allocations: 24.8 kB / 0.5241 GB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/0.279, allocations: 10.44 kB / 0.5241 GB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005833/0.2796, allocations: 308.6 kB / 0.5244 GB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.2818, allocations: 1.699 MB / 0.5261 GB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000801/0.2826, allocations: 426.9 kB / 0.5265 GB, free: 6.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.2828, allocations: 121.7 kB / 0.5266 GB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.2829, allocations: 2.75 kB / 0.5266 GB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.717e-05/0.2829, allocations: 39.72 kB / 0.5266 GB, free: 6.379 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.2829, allocations: 3.938 kB / 0.5266 GB, free: 6.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.001537/0.2844, allocations: 0.9233 MB / 0.5275 GB, free: 5.754 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.582e-05/0.2845, allocations: 59.45 kB / 0.5276 GB, free: 5.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000431/0.2849, allocations: 391.8 kB / 0.528 GB, free: 5.488 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.2849, allocations: 31.83 kB / 0.528 GB, free: 5.453 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001388/0.2851, allocations: 274 kB / 0.5282 GB, free: 5.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.013e-05/0.2851, allocations: 92.56 kB / 0.5283 GB, free: 5.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.501e-05/0.2852, allocations: 8.938 kB / 0.5283 GB, free: 5.152 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.832e-05/0.2853, allocations: 351.9 kB / 0.5287 GB, free: 4.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.2855, allocations: 96.72 kB / 0.5288 GB, free: 4.789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.2857, allocations: 157 kB / 0.5289 GB, free: 4.688 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.2859, allocations: 116.9 kB / 0.529 GB, free: 4.637 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.2859, allocations: 0.9375 kB / 0.529 GB, free: 4.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005794/0.2865, allocations: 359.7 kB / 0.5294 GB, free: 4.473 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.2866, allocations: 148.1 kB / 0.5295 GB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2866, allocations: 2.219 kB / 0.5295 GB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001297/0.2867, allocations: 24.53 kB / 0.5295 GB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.287, allocations: 73.19 kB / 0.5296 GB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007072/0.2877, allocations: 1.276 MB / 0.5309 GB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.2879, allocations: 20.31 kB / 0.5309 GB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.2879, allocations: 13.75 kB / 0.5309 GB, free: 2.969 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.41e-06/0.288, allocations: 3.094 kB / 0.5309 GB, free: 2.969 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004308/0.2884, allocations: 261.9 kB / 0.5311 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.2884, allocations: 2.75 kB / 0.5311 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.733e-05/0.2885, allocations: 25.11 kB / 0.5312 GB, free: 2.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.2887, allocations: 66.66 kB / 0.5312 GB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005803/0.2893, allocations: 1.291 MB / 0.5325 GB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.2895, allocations: 10.86 kB / 0.5325 GB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.2895, allocations: 12.25 kB / 0.5325 GB, free: 1.512 MB / 346.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 () * Number of clocked 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.0001879/0.2897, allocations: 248 kB / 0.5328 GB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.2898, allocations: 37.91 kB / 0.5328 GB, free: 1.262 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.826e-05/0.2898, allocations: 42.5 kB / 0.5328 GB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.2898, allocations: 6.891 kB / 0.5328 GB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2899, allocations: 0.5938 kB / 0.5328 GB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2899, allocations: 2.672 kB / 0.5328 GB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.291, allocations: 0.8526 MB / 0.5337 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.291, allocations: 5.219 kB / 0.5337 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.2912, allocations: 61.38 kB / 0.5337 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.888e-05/0.2913, allocations: 22.64 kB / 0.5338 GB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.2914, allocations: 7.078 kB / 0.5338 GB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007573/0.2921, allocations: 1.281 MB / 0.535 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2921, allocations: 5.859 kB / 0.535 GB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007495/0.2929, allocations: 0.4942 MB / 0.5355 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.293, allocations: 122.2 kB / 0.5356 GB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.2931, allocations: 11.53 kB / 0.5356 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.2933, allocations: 19.92 kB / 0.5357 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.294e-05/0.2933, allocations: 17.22 kB / 0.5357 GB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.2933, allocations: 6.984 kB / 0.5357 GB, free: 14.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003275/0.2937, allocations: 279.1 kB / 0.5359 GB, free: 14.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2937, allocations: 4 kB / 0.5359 GB, free: 14.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005334/0.2942, allocations: 145.1 kB / 0.5361 GB, free: 14.75 MB / 362.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 () * Number of clocked 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.0001216/0.2944, allocations: 102.8 kB / 0.5362 GB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001023/0.2954, allocations: 0.6036 MB / 0.5368 GB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.2954, allocations: 1.094 kB / 0.5368 GB, free: 14.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.2958, allocations: 233.2 kB / 0.537 GB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.2963, allocations: 65.05 kB / 0.5371 GB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.2982, allocations: 1.299 MB / 0.5383 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.2986, allocations: 0.8312 MB / 0.5391 GB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.887e-05/0.2987, allocations: 29.34 kB / 0.5392 GB, free: 12.57 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2987, allocations: 0 / 0.5392 GB, free: 12.57 MB / 362.7 MB Notification: Performance of Templates: time 0.01005/0.3088, allocations: 7.119 MB / 0.5461 GB, free: 9.863 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled --alarm=480 > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)