Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001307, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001308/0.001308, allocations: 113 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4179/0.4179, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 63.89 kB / 465.5 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3661, allocations: 62.02 MB / 0.5152 GB, free: 37.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.00536/0.3715, allocations: 4.554 MB / 0.5196 GB, free: 34.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.3738, allocations: 1.621 MB / 0.5212 GB, free: 33.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003236/0.3742, allocations: 17.72 kB / 0.5212 GB, free: 33.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006181/0.3748, allocations: 258.7 kB / 0.5214 GB, free: 33.33 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000264/0.3751, allocations: 126.3 kB / 0.5216 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.3755, allocations: 241.7 kB / 0.5218 GB, free: 33.08 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005904/0.3761, allocations: 0.8044 MB / 0.5226 GB, free: 32.67 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.3765, allocations: 355 kB / 0.5229 GB, free: 32.47 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/0.3768, allocations: 268.5 kB / 0.5232 GB, free: 32.34 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.3771, allocations: 325.8 kB / 0.5235 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.897e-05/0.3772, allocations: 45.47 kB / 0.5235 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.597e-05/0.3772, allocations: 46.94 kB / 0.5236 GB, free: 32.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.84e-05/0.3773, allocations: 139.3 kB / 0.5237 GB, free: 32.06 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.3775, allocations: 334.2 kB / 0.524 GB, free: 31.85 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005213/0.378, allocations: 0.8721 MB / 0.5249 GB, free: 31.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3781, allocations: 3.422 kB / 0.5249 GB, free: 31.49 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3781, allocations: 0 / 0.5249 GB, free: 31.49 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.3781, allocations: 0 / 0.5249 GB, free: 31.49 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.001375/0.3795, allocations: 1.012 MB / 0.5259 GB, free: 30.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3795, allocations: 10.66 kB / 0.5259 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.3796, allocations: 84.53 kB / 0.526 GB, free: 30.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.3802, allocations: 0.4885 MB / 0.5264 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.923e-05/0.3802, allocations: 48.44 kB / 0.5265 GB, free: 30.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.967e-05/0.3803, allocations: 61.38 kB / 0.5265 GB, free: 30.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008295/0.3811, allocations: 0.5932 MB / 0.5271 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.3812, allocations: 0 / 0.5271 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.3812, allocations: 31.97 kB / 0.5272 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.3812, allocations: 21.09 kB / 0.5272 GB, free: 29.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007453/0.382, allocations: 421.2 kB / 0.5276 GB, free: 29.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00281/0.3848, allocations: 2.171 MB / 0.5297 GB, free: 28.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.3859, allocations: 0.5599 MB / 0.5302 GB, free: 28.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.3862, allocations: 165.8 kB / 0.5304 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.399e-05/0.3863, allocations: 5.625 kB / 0.5304 GB, free: 28.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.3863, allocations: 37.31 kB / 0.5304 GB, free: 28.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 2.865e-06/0.3863, allocations: 3.984 kB / 0.5304 GB, free: 28.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.002161/0.3885, allocations: 1.137 MB / 0.5316 GB, free: 27.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.3885, allocations: 54.56 kB / 0.5316 GB, free: 27.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004934/0.389, allocations: 0.5193 MB / 0.5321 GB, free: 26.99 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.3891, allocations: 36.64 kB / 0.5321 GB, free: 26.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.3892, allocations: 339.3 kB / 0.5325 GB, free: 26.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.291e-05/0.3893, allocations: 121.8 kB / 0.5326 GB, free: 26.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.3894, allocations: 73.77 kB / 0.5327 GB, free: 26.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.3895, allocations: 369.7 kB / 0.533 GB, free: 26.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00028/0.3898, allocations: 141.6 kB / 0.5331 GB, free: 26.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.3901, allocations: 219.5 kB / 0.5334 GB, free: 26.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005637/0.3907, allocations: 364.8 kB / 0.5337 GB, free: 25.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3907, allocations: 3.938 kB / 0.5337 GB, free: 25.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008042/0.3915, allocations: 481 kB / 0.5342 GB, free: 25.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.3915, allocations: 5.812 kB / 0.5342 GB, free: 25.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.3916, allocations: 6.625 kB / 0.5342 GB, free: 25.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.3917, allocations: 23.41 kB / 0.5342 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003999/0.3921, allocations: 103.4 kB / 0.5343 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000684/0.3928, allocations: 1.288 MB / 0.5356 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.3931, allocations: 21.77 kB / 0.5356 GB, free: 24.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.3931, allocations: 18.5 kB / 0.5356 GB, free: 24.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003082/0.3934, allocations: 254 kB / 0.5358 GB, free: 24.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002239/0.3936, allocations: 206.1 kB / 0.536 GB, free: 23.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004091/0.3941, allocations: 336.4 kB / 0.5364 GB, free: 23.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.513e-06/0.3941, allocations: 0 / 0.5364 GB, free: 23.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0006159/0.3947, allocations: 439.4 kB / 0.5368 GB, free: 23.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.337e-06/0.3947, allocations: 11.72 kB / 0.5368 GB, free: 23.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.3947, allocations: 3 kB / 0.5368 GB, free: 23.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.927e-05/0.3948, allocations: 27.7 kB / 0.5368 GB, free: 23.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003101/0.3951, allocations: 88.48 kB / 0.5369 GB, free: 23.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005871/0.3957, allocations: 1.285 MB / 0.5382 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.3959, allocations: 17.14 kB / 0.5382 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.396, allocations: 19.75 kB / 0.5382 GB, free: 22.15 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.3961, allocations: 210.2 kB / 0.5384 GB, free: 21.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/0.3961, allocations: 55.47 kB / 0.5384 GB, free: 21.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.191e-05/0.3962, allocations: 61.75 kB / 0.5385 GB, free: 21.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.3962, allocations: 2.969 kB / 0.5385 GB, free: 21.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3963, allocations: 0 / 0.5385 GB, free: 21.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.3963, allocations: 3.141 kB / 0.5385 GB, free: 21.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001353/0.3976, allocations: 1.059 MB / 0.5395 GB, free: 21.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3976, allocations: 2.281 kB / 0.5395 GB, free: 21.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003167/0.398, allocations: 72.45 kB / 0.5396 GB, free: 21.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.111e-05/0.398, allocations: 22.8 kB / 0.5396 GB, free: 21.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.3981, allocations: 6.594 kB / 0.5396 GB, free: 21.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006302/0.3987, allocations: 1.29 MB / 0.5409 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3987, allocations: 0 / 0.5409 GB, free: 19.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006024/0.4048, allocations: 4.674 MB / 0.5455 GB, free: 16.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.4049, allocations: 131.4 kB / 0.5456 GB, free: 16.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.979e-05/0.4049, allocations: 7.984 kB / 0.5456 GB, free: 16.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002739/0.4052, allocations: 31.72 kB / 0.5456 GB, free: 16.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.719e-05/0.4053, allocations: 18.48 kB / 0.5456 GB, free: 16.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.4054, allocations: 14.53 kB / 0.5457 GB, free: 16.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004959/0.4059, allocations: 367.8 kB / 0.546 GB, free: 16.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4059, allocations: 0 / 0.546 GB, free: 16.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001112/0.407, allocations: 274 kB / 0.5463 GB, free: 16.12 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.4071, allocations: 112.5 kB / 0.5464 GB, free: 16.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.4085, allocations: 0.7343 MB / 0.5471 GB, free: 15.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4085, allocations: 1.891 kB / 0.5471 GB, free: 15.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004425/0.409, allocations: 276.7 kB / 0.5474 GB, free: 15.47 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007874/0.4098, allocations: 101.9 kB / 0.5475 GB, free: 15.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.4127, allocations: 1.905 MB / 0.5493 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005223/0.4132, allocations: 0.8984 MB / 0.5502 GB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003686/0.4136, allocations: 76.38 kB / 0.5503 GB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.4138, allocations: 41.19 kB / 0.5503 GB, free: 13.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4138, allocations: 3.938 kB / 0.5503 GB, free: 13.33 MB / 378.7 MB Notification: Performance of Templates: time 0.01427/0.428, allocations: 6.392 MB / 0.5566 GB, free: 11.6 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)