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.001032/0.001032, allocations: 194.4 kB / 16.78 MB, free: 5.012 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.5 MB / 244.1 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00092/0.0009198, allocations: 95.81 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.3407/0.3407, allocations: 44.82 MB / 392.9 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003545, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3373, allocations: 62.95 MB / 0.5165 GB, free: 36.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1298/0.4671, allocations: 98.18 MB / 0.6123 GB, free: 7.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/0.4675, allocations: 71.95 kB / 0.6124 GB, free: 7.109 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02992/0.4974, allocations: 10.94 MB / 0.6231 GB, free: 12.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4974, allocations: 0 / 0.6231 GB, free: 12.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.949e-05/0.4975, allocations: 16 kB / 0.6231 GB, free: 12.11 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001547/0.4991, allocations: 0.7525 MB / 0.6238 GB, free: 11.3 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.4991, allocations: 8.031 kB / 0.6239 GB, free: 11.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001886/0.4993, allocations: 64.19 kB / 0.6239 GB, free: 11.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007026/0.5, allocations: 416.5 kB / 0.6243 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.5001, allocations: 37.38 kB / 0.6243 GB, free: 10.75 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-05/0.5002, allocations: 48.38 kB / 0.6244 GB, free: 10.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008961/0.5011, allocations: 455.6 kB / 0.6248 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.175e-05/0.5011, allocations: 4.094 kB / 0.6248 GB, free: 10.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.203e-05/0.5012, allocations: 27.94 kB / 0.6249 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.426e-05/0.5012, allocations: 11.94 kB / 0.6249 GB, free: 10.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006841/0.5019, allocations: 311.8 kB / 0.6252 GB, free: 9.895 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.5047, allocations: 1.691 MB / 0.6268 GB, free: 8.109 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008812/0.5056, allocations: 423.5 kB / 0.6272 GB, free: 7.668 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.5058, allocations: 120.8 kB / 0.6273 GB, free: 7.547 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.5059, allocations: 7.984 kB / 0.6273 GB, free: 7.539 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.5059, allocations: 38.56 kB / 0.6274 GB, free: 7.492 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 2.324e-06/0.5059, allocations: 4 kB / 0.6274 GB, free: 7.488 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.001876/0.5078, allocations: 0.9226 MB / 0.6283 GB, free: 6.492 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.5079, allocations: 63.34 kB / 0.6283 GB, free: 6.418 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005084/0.5084, allocations: 385.7 kB / 0.6287 GB, free: 6.035 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.118e-05/0.5085, allocations: 33.7 kB / 0.6287 GB, free: 5.996 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.5086, allocations: 279.9 kB / 0.629 GB, free: 5.719 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.781e-05/0.5087, allocations: 94.59 kB / 0.6291 GB, free: 5.625 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.433e-05/0.5087, allocations: 4 kB / 0.6291 GB, free: 5.621 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.5089, allocations: 350.8 kB / 0.6294 GB, free: 5.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.5091, allocations: 95.95 kB / 0.6295 GB, free: 5.176 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.5094, allocations: 167.2 kB / 0.6297 GB, free: 4.988 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.5098, allocations: 262.7 kB / 0.6299 GB, free: 4.707 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5098, allocations: 0 / 0.6299 GB, free: 4.707 MB / 442.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006959/0.5105, allocations: 357.8 kB / 0.6303 GB, free: 4.348 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.275e-05/0.5106, allocations: 147.2 kB / 0.6304 GB, free: 4.176 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.5107, allocations: 4 kB / 0.6304 GB, free: 4.172 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/0.5108, allocations: 28.78 kB / 0.6305 GB, free: 4.141 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.5111, allocations: 67.91 kB / 0.6305 GB, free: 4.074 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.5121, allocations: 1.285 MB / 0.6318 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.5124, allocations: 16.03 kB / 0.6318 GB, free: 2.641 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.5124, allocations: 12 kB / 0.6318 GB, free: 2.629 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/0.5124, allocations: 4 kB / 0.6318 GB, free: 2.625 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000486/0.5129, allocations: 272.8 kB / 0.6321 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-06/0.5129, allocations: 0 / 0.6321 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.23e-05/0.513, allocations: 24.84 kB / 0.6321 GB, free: 2.328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.5133, allocations: 68.12 kB / 0.6322 GB, free: 2.262 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008843/0.5142, allocations: 1.276 MB / 0.6334 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.5144, allocations: 11.98 kB / 0.6334 GB, free: 0.8398 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.755e-05/0.5144, allocations: 12 kB / 0.6334 GB, free: 0.8281 MB / 442.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.0002917/0.5147, allocations: 249 kB / 0.6337 GB, free: 0.5742 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.211e-05/0.5148, allocations: 39.53 kB / 0.6337 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.391e-05/0.5149, allocations: 39.52 kB / 0.6337 GB, free: 0.4922 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.5149, allocations: 7.984 kB / 0.6337 GB, free: 496 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.5149, allocations: 0 / 0.6337 GB, free: 496 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.5149, allocations: 8.047 kB / 0.6338 GB, free: 488 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.5162, allocations: 0.8635 MB / 0.6346 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.5163, allocations: 0 / 0.6346 GB, free: 15.55 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002527/0.5165, allocations: 51.97 kB / 0.6346 GB, free: 15.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.347e-05/0.5166, allocations: 25.44 kB / 0.6347 GB, free: 15.47 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.5166, allocations: 8 kB / 0.6347 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008373/0.5175, allocations: 1.276 MB / 0.6359 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.5175, allocations: 0 / 0.6359 GB, free: 14.05 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007625/0.5183, allocations: 0.4998 MB / 0.6364 GB, free: 13.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.5184, allocations: 116.7 kB / 0.6365 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/0.5185, allocations: 8 kB / 0.6365 GB, free: 13.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.5187, allocations: 19.98 kB / 0.6365 GB, free: 13.37 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.5188, allocations: 31.84 kB / 0.6366 GB, free: 13.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.5188, allocations: 4 kB / 0.6366 GB, free: 13.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003419/0.5191, allocations: 287.1 kB / 0.6369 GB, free: 13.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5191, allocations: 0 / 0.6369 GB, free: 13.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0006434/0.5198, allocations: 152 kB / 0.637 GB, free: 12.9 MB / 458.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.0002976/0.5201, allocations: 192.3 kB / 0.6372 GB, free: 12.71 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.5211, allocations: 0.5947 MB / 0.6378 GB, free: 12.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.5211, allocations: 0 / 0.6378 GB, free: 12.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.5215, allocations: 237 kB / 0.638 GB, free: 11.85 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.5221, allocations: 73.5 kB / 0.6381 GB, free: 11.78 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.5241, allocations: 1.292 MB / 0.6393 GB, free: 10.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004852/0.5246, allocations: 0.8386 MB / 0.6401 GB, free: 9.582 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/0.5247, allocations: 27.44 kB / 0.6402 GB, free: 9.555 MB / 458.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5247, allocations: 0 / 0.6402 GB, free: 9.555 MB / 458.7 MB Notification: Performance of Templates: time 0.01123/0.536, allocations: 7.492 MB / 0.6475 GB, free: 2.074 MB / 458.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)