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.001252/0.001252, allocations: 201.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.5 MB / 243.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008151/0.0008147, allocations: 95.83 kB / 295.5 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3612/0.3612, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002956/0.0002958, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3706/0.3709, allocations: 62.96 MB / 0.5159 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.004418/0.3754, allocations: 3.905 MB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.3777, allocations: 1.534 MB / 0.5212 GB, free: 33.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000362/0.378, allocations: 15.47 kB / 0.5212 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005292/0.3786, allocations: 240.6 kB / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002374/0.3788, allocations: 126.4 kB / 0.5216 GB, free: 33.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.3792, allocations: 177.9 kB / 0.5217 GB, free: 32.93 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006173/0.3798, allocations: 0.7639 MB / 0.5225 GB, free: 32.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004349/0.3803, allocations: 358.5 kB / 0.5228 GB, free: 32.33 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002661/0.3805, allocations: 220.6 kB / 0.523 GB, free: 32.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.3808, allocations: 269.2 kB / 0.5233 GB, free: 32.09 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.554e-05/0.3808, allocations: 28.84 kB / 0.5233 GB, free: 32.09 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.163e-05/0.3809, allocations: 32.91 kB / 0.5233 GB, free: 32.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.035e-05/0.381, allocations: 109.7 kB / 0.5234 GB, free: 32.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.3812, allocations: 319.7 kB / 0.5237 GB, free: 31.8 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004433/0.3816, allocations: 0.6926 MB / 0.5244 GB, free: 31.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3816, allocations: 0 / 0.5244 GB, free: 31.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3816, allocations: 0 / 0.5244 GB, free: 31.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3817, allocations: 0 / 0.5244 GB, free: 31.64 MB / 378.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.001216/0.3829, allocations: 0.9035 MB / 0.5253 GB, free: 31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.3829, allocations: 11.56 kB / 0.5253 GB, free: 30.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.3831, allocations: 85.72 kB / 0.5254 GB, free: 30.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005362/0.3836, allocations: 496.7 kB / 0.5259 GB, free: 30.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.3836, allocations: 45.34 kB / 0.5259 GB, free: 30.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.393e-05/0.3837, allocations: 63.84 kB / 0.526 GB, free: 30.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008884/0.3846, allocations: 0.6072 MB / 0.5266 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.411e-05/0.3846, allocations: 6.531 kB / 0.5266 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.607e-05/0.3847, allocations: 25.16 kB / 0.5266 GB, free: 30.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.3847, allocations: 15.47 kB / 0.5266 GB, free: 30.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007538/0.3855, allocations: 442.3 kB / 0.527 GB, free: 30.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00253/0.388, allocations: 2.19 MB / 0.5292 GB, free: 28.69 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009634/0.389, allocations: 0.6111 MB / 0.5298 GB, free: 28.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00029/0.3893, allocations: 184.8 kB / 0.5299 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.3893, allocations: 2.656 kB / 0.53 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.3894, allocations: 37.12 kB / 0.53 GB, free: 28.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.036e-06/0.3894, allocations: 3.984 kB / 0.53 GB, free: 28.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.001931/0.3913, allocations: 1.189 MB / 0.5312 GB, free: 27.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.3913, allocations: 56.84 kB / 0.5312 GB, free: 27.45 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004963/0.3919, allocations: 0.5143 MB / 0.5317 GB, free: 27.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.3919, allocations: 32.61 kB / 0.5317 GB, free: 27.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.3921, allocations: 347.9 kB / 0.5321 GB, free: 26.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.256e-05/0.3921, allocations: 118.8 kB / 0.5322 GB, free: 26.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.3921, allocations: 11.03 kB / 0.5322 GB, free: 26.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.3922, allocations: 362.8 kB / 0.5325 GB, free: 26.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002702/0.3925, allocations: 153.2 kB / 0.5327 GB, free: 26.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002946/0.3928, allocations: 231 kB / 0.5329 GB, free: 26.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005546/0.3934, allocations: 390.8 kB / 0.5333 GB, free: 26.05 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3934, allocations: 7.875 kB / 0.5333 GB, free: 26.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008392/0.3942, allocations: 0.4905 MB / 0.5338 GB, free: 25.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.418e-05/0.3943, allocations: 157 kB / 0.5339 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3943, allocations: 6.875 kB / 0.5339 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.3945, allocations: 23.95 kB / 0.5339 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.3949, allocations: 104.9 kB / 0.534 GB, free: 25.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007263/0.3956, allocations: 1.289 MB / 0.5353 GB, free: 24.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.3959, allocations: 30.16 kB / 0.5353 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.3959, allocations: 14.56 kB / 0.5353 GB, free: 24.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.929e-06/0.3959, allocations: 2.812 kB / 0.5353 GB, free: 24.3 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005518/0.3965, allocations: 361.2 kB / 0.5357 GB, free: 24.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3965, allocations: 7 kB / 0.5357 GB, free: 24.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.894e-05/0.3966, allocations: 24.73 kB / 0.5357 GB, free: 24.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.3969, allocations: 89.33 kB / 0.5358 GB, free: 24.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006002/0.3975, allocations: 1.287 MB / 0.5371 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.3977, allocations: 12.75 kB / 0.5371 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.3977, allocations: 15.56 kB / 0.5371 GB, free: 22.8 MB / 378.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.0002986/0.398, allocations: 268.9 kB / 0.5374 GB, free: 22.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.622e-05/0.3981, allocations: 57.62 kB / 0.5374 GB, free: 22.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.111e-05/0.3982, allocations: 57.09 kB / 0.5375 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3982, allocations: 5.469 kB / 0.5375 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3983, allocations: 3.984 kB / 0.5375 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.3983, allocations: 3.188 kB / 0.5375 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.3997, allocations: 1.087 MB / 0.5385 GB, free: 21.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3997, allocations: 3.234 kB / 0.5385 GB, free: 21.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.4001, allocations: 75.84 kB / 0.5386 GB, free: 21.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.759e-05/0.4001, allocations: 23.02 kB / 0.5386 GB, free: 21.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.4002, allocations: 10.72 kB / 0.5386 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000587/0.4008, allocations: 1.279 MB / 0.5399 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4008, allocations: 3.938 kB / 0.5399 GB, free: 20.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008954/0.4017, allocations: 0.66 MB / 0.5405 GB, free: 20.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.689e-05/0.4018, allocations: 132.1 kB / 0.5407 GB, free: 20.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.4018, allocations: 10.62 kB / 0.5407 GB, free: 20.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002591/0.4021, allocations: 32.75 kB / 0.5407 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.301e-05/0.4022, allocations: 22.69 kB / 0.5407 GB, free: 20.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.4022, allocations: 15.81 kB / 0.5407 GB, free: 20.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003708/0.4026, allocations: 364 kB / 0.5411 GB, free: 19.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4026, allocations: 0 / 0.5411 GB, free: 19.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006892/0.4033, allocations: 182.8 kB / 0.5413 GB, free: 19.84 MB / 378.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.0001182/0.4034, allocations: 108.2 kB / 0.5414 GB, free: 19.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.4045, allocations: 0.7642 MB / 0.5421 GB, free: 19.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.4046, allocations: 5 kB / 0.5421 GB, free: 19.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004154/0.405, allocations: 286.9 kB / 0.5424 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006745/0.4057, allocations: 106.3 kB / 0.5425 GB, free: 19.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.4078, allocations: 1.601 MB / 0.5441 GB, free: 18.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003227/0.4081, allocations: 0.8917 MB / 0.5449 GB, free: 17.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.4082, allocations: 38.91 kB / 0.545 GB, free: 17.4 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4083, allocations: 0 / 0.545 GB, free: 17.4 MB / 378.7 MB Notification: Performance of Templates: time 0.01545/0.4237, allocations: 9.438 MB / 0.5542 GB, free: 14.74 MB / 378.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)