Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 207.3 kB / 17.99 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 102 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4567/0.4567, allocations: 44.82 MB / 392.7 MB, free: 34.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 67.89 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4067/0.4079, allocations: 62.02 MB / 0.5151 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004512/0.4124, allocations: 4.049 MB / 0.5191 GB, free: 34.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.4144, allocations: 1.47 MB / 0.5205 GB, free: 33.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.4147, allocations: 12.94 kB / 0.5206 GB, free: 33.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006198/0.4154, allocations: 226.3 kB / 0.5208 GB, free: 33.71 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002139/0.4156, allocations: 113.5 kB / 0.5209 GB, free: 33.63 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.4159, allocations: 165.5 kB / 0.521 GB, free: 33.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.4163, allocations: 0.6033 MB / 0.5216 GB, free: 33.21 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000312/0.4167, allocations: 248.2 kB / 0.5219 GB, free: 33.08 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.4169, allocations: 215.1 kB / 0.5221 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.4171, allocations: 247.1 kB / 0.5223 GB, free: 32.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.867e-05/0.4172, allocations: 36.03 kB / 0.5223 GB, free: 32.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.17e-05/0.4173, allocations: 35.12 kB / 0.5224 GB, free: 32.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.378e-05/0.4173, allocations: 106 kB / 0.5225 GB, free: 32.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.4175, allocations: 268.9 kB / 0.5227 GB, free: 32.6 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.418, allocations: 0.6682 MB / 0.5234 GB, free: 32.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.418, allocations: 0 / 0.5234 GB, free: 32.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.418, allocations: 0 / 0.5234 GB, free: 32.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.418, allocations: 0 / 0.5234 GB, free: 32.33 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001142/0.4191, allocations: 0.8344 MB / 0.5242 GB, free: 31.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.4192, allocations: 10.53 kB / 0.5242 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.859e-05/0.4193, allocations: 66.31 kB / 0.5243 GB, free: 31.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.4197, allocations: 403.5 kB / 0.5247 GB, free: 31.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.4197, allocations: 37.59 kB / 0.5247 GB, free: 31.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.528e-05/0.4198, allocations: 46.22 kB / 0.5247 GB, free: 31.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006173/0.4204, allocations: 455.7 kB / 0.5252 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.4205, allocations: 7.844 kB / 0.5252 GB, free: 31.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.4205, allocations: 21.94 kB / 0.5252 GB, free: 31.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.4205, allocations: 15.44 kB / 0.5252 GB, free: 31.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005049/0.421, allocations: 303.4 kB / 0.5255 GB, free: 30.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001896/0.4229, allocations: 1.668 MB / 0.5271 GB, free: 29.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007224/0.4237, allocations: 392.8 kB / 0.5275 GB, free: 29.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.4239, allocations: 110.8 kB / 0.5276 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.4239, allocations: 2.656 kB / 0.5276 GB, free: 29.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.4239, allocations: 41.16 kB / 0.5276 GB, free: 29.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.4239, allocations: 4 kB / 0.5277 GB, free: 29.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.001407/0.4253, allocations: 0.8829 MB / 0.5285 GB, free: 28.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.4254, allocations: 58.03 kB / 0.5286 GB, free: 28.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003435/0.4257, allocations: 402.5 kB / 0.529 GB, free: 28.68 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.4258, allocations: 29.7 kB / 0.529 GB, free: 28.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.4259, allocations: 277.9 kB / 0.5292 GB, free: 28.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.888e-05/0.4259, allocations: 88.23 kB / 0.5293 GB, free: 28.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-05/0.426, allocations: 56.36 kB / 0.5294 GB, free: 28.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.363e-05/0.4261, allocations: 348.8 kB / 0.5297 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001808/0.4263, allocations: 103.6 kB / 0.5298 GB, free: 27.94 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001895/0.4265, allocations: 154.4 kB / 0.53 GB, free: 27.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003894/0.4269, allocations: 258.2 kB / 0.5302 GB, free: 27.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.4269, allocations: 4 kB / 0.5302 GB, free: 27.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006091/0.4275, allocations: 351.3 kB / 0.5305 GB, free: 27.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.4276, allocations: 12.06 kB / 0.5306 GB, free: 27.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.4276, allocations: 6.688 kB / 0.5306 GB, free: 27.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/0.4278, allocations: 27.28 kB / 0.5306 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.428, allocations: 69.14 kB / 0.5307 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009266/0.429, allocations: 1.281 MB / 0.5319 GB, free: 26.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.4292, allocations: 15.28 kB / 0.5319 GB, free: 26.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.4292, allocations: 12.84 kB / 0.5319 GB, free: 26.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003063/0.4296, allocations: 205.2 kB / 0.5321 GB, free: 26.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002017/0.4298, allocations: 150.8 kB / 0.5323 GB, free: 25.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003011/0.4301, allocations: 232.2 kB / 0.5325 GB, free: 25.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.185e-06/0.4301, allocations: 6.375 kB / 0.5325 GB, free: 25.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0004748/0.4306, allocations: 339 kB / 0.5328 GB, free: 25.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.4306, allocations: 6 kB / 0.5328 GB, free: 25.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.4306, allocations: 3 kB / 0.5328 GB, free: 25.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.001e-05/0.4307, allocations: 19.83 kB / 0.5329 GB, free: 25.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.4309, allocations: 64.23 kB / 0.5329 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006425/0.4316, allocations: 1.294 MB / 0.5342 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.4318, allocations: 6.719 kB / 0.5342 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.4318, allocations: 12.94 kB / 0.5342 GB, free: 24.24 MB / 378.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 (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.0001209/0.4319, allocations: 202 kB / 0.5344 GB, free: 24.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.758e-05/0.432, allocations: 40.41 kB / 0.5344 GB, free: 24.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.869e-05/0.4321, allocations: 46.25 kB / 0.5345 GB, free: 23.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4321, allocations: 6.969 kB / 0.5345 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4321, allocations: 4 kB / 0.5345 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.4321, allocations: 7.172 kB / 0.5345 GB, free: 23.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.4332, allocations: 0.8445 MB / 0.5353 GB, free: 23.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4332, allocations: 3.234 kB / 0.5353 GB, free: 23.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000234/0.4334, allocations: 54.02 kB / 0.5354 GB, free: 23.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.072e-05/0.4335, allocations: 19.83 kB / 0.5354 GB, free: 23.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.894e-05/0.4335, allocations: 6.844 kB / 0.5354 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005935/0.4341, allocations: 1.283 MB / 0.5366 GB, free: 22.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.4341, allocations: 3.938 kB / 0.5367 GB, free: 22.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004318/0.4385, allocations: 3.994 MB / 0.5406 GB, free: 18.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.869e-05/0.4386, allocations: 119.1 kB / 0.5407 GB, free: 18.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/0.4386, allocations: 10.56 kB / 0.5407 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.4388, allocations: 17.92 kB / 0.5407 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.061e-05/0.4389, allocations: 14.62 kB / 0.5407 GB, free: 18.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.4389, allocations: 9.25 kB / 0.5407 GB, free: 18.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002659/0.4392, allocations: 276.4 kB / 0.541 GB, free: 18.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4392, allocations: 4 kB / 0.541 GB, free: 18.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008015/0.44, allocations: 217.7 kB / 0.5412 GB, free: 18.62 MB / 378.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 (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.0001235/0.4402, allocations: 106.9 kB / 0.5413 GB, free: 18.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.4412, allocations: 0.5851 MB / 0.5419 GB, free: 18.19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4412, allocations: 0 / 0.5419 GB, free: 18.19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003246/0.4416, allocations: 225.8 kB / 0.5421 GB, free: 18.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007347/0.4423, allocations: 77.61 kB / 0.5422 GB, free: 18.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002019/0.4443, allocations: 1.556 MB / 0.5437 GB, free: 16.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.4446, allocations: 0.8419 MB / 0.5445 GB, free: 16.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.4449, allocations: 53.88 kB / 0.5445 GB, free: 16.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.711e-05/0.4449, allocations: 30.44 kB / 0.5446 GB, free: 16.14 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.445, allocations: 4 kB / 0.5446 GB, free: 16.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01104/0.456, allocations: 4.73 MB / 0.5492 GB, free: 15.79 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)