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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001107/0.001107, allocations: 105.1 kB / 18.45 MB, free: 4.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 210.8 kB / 19.41 MB, free: 3.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2075/0.2075, allocations: 46.1 MB / 344.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 79.86 kB / 482 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.335, allocations: 62.43 MB / 0.5316 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005959/0.341, allocations: 4.54 MB / 0.5361 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002964/0.344, allocations: 1.659 MB / 0.5377 GB, free: 8.891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006742/0.3447, allocations: 16.84 kB / 0.5377 GB, free: 8.887 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.3457, allocations: 293.5 kB / 0.538 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006408/0.3464, allocations: 169.4 kB / 0.5382 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000604/0.347, allocations: 263.8 kB / 0.5384 GB, free: 8.289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009757/0.348, allocations: 0.8445 MB / 0.5392 GB, free: 7.754 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005951/0.3486, allocations: 390.2 kB / 0.5396 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004714/0.3491, allocations: 309.5 kB / 0.5399 GB, free: 7.309 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003422/0.3494, allocations: 341.3 kB / 0.5402 GB, free: 7.047 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.3495, allocations: 80.19 kB / 0.5403 GB, free: 7.047 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.3497, allocations: 79.84 kB / 0.5404 GB, free: 7.047 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.3498, allocations: 170.7 kB / 0.5405 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003573/0.3502, allocations: 383.1 kB / 0.5409 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008863/0.351, allocations: 0.9277 MB / 0.5418 GB, free: 5.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3511, allocations: 0 / 0.5418 GB, free: 5.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3511, allocations: 0 / 0.5418 GB, free: 5.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.3511, allocations: 0 / 0.5418 GB, free: 5.875 MB / 398.1 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.001647/0.3527, allocations: 1.015 MB / 0.5428 GB, free: 5.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.3528, allocations: 9.031 kB / 0.5428 GB, free: 5.051 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.3529, allocations: 85.41 kB / 0.5429 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007206/0.3537, allocations: 0.5055 MB / 0.5434 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.3537, allocations: 46.5 kB / 0.5434 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.12e-05/0.3538, allocations: 64.69 kB / 0.5435 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.3549, allocations: 0.5931 MB / 0.5441 GB, free: 4.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.3549, allocations: 8.969 kB / 0.5441 GB, free: 4.141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.085e-05/0.355, allocations: 30.16 kB / 0.5441 GB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.355, allocations: 14.22 kB / 0.5441 GB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008795/0.3559, allocations: 419.1 kB / 0.5445 GB, free: 3.926 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002965/0.3589, allocations: 2.138 MB / 0.5466 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.36, allocations: 0.5662 MB / 0.5472 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.3604, allocations: 175 kB / 0.5473 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.3604, allocations: 3.938 kB / 0.5473 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.3604, allocations: 38.56 kB / 0.5474 GB, free: 1.496 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 1.342e-06/0.3604, allocations: 0 / 0.5474 GB, free: 1.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.002204/0.3627, allocations: 1.134 MB / 0.5485 GB, free: 292 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.3627, allocations: 55.41 kB / 0.5485 GB, free: 224 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006282/0.3633, allocations: 0.5144 MB / 0.549 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.3634, allocations: 33.7 kB / 0.5491 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.3636, allocations: 340.2 kB / 0.5494 GB, free: 15.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.647e-05/0.3637, allocations: 122.2 kB / 0.5495 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.3638, allocations: 78.12 kB / 0.5496 GB, free: 15.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.364, allocations: 362.8 kB / 0.5499 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/0.3643, allocations: 150.5 kB / 0.5501 GB, free: 14.6 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.3647, allocations: 224.8 kB / 0.5503 GB, free: 14.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006961/0.3654, allocations: 356.2 kB / 0.5506 GB, free: 13.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.3654, allocations: 7.938 kB / 0.5506 GB, free: 13.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009172/0.3663, allocations: 481 kB / 0.5511 GB, free: 13.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.3664, allocations: 16.27 kB / 0.5511 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.3664, allocations: 4 kB / 0.5511 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.3665, allocations: 20.86 kB / 0.5511 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.3669, allocations: 99.88 kB / 0.5512 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.368, allocations: 1.38 MB / 0.5526 GB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002986/0.3683, allocations: 19.98 kB / 0.5526 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.3683, allocations: 12 kB / 0.5526 GB, free: 11.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000354/0.3687, allocations: 261.1 kB / 0.5528 GB, free: 11.54 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002652/0.3689, allocations: 206.9 kB / 0.553 GB, free: 11.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005186/0.3695, allocations: 328 kB / 0.5534 GB, free: 10.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.807e-06/0.3695, allocations: 4 kB / 0.5534 GB, free: 10.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007504/0.3702, allocations: 450.3 kB / 0.5538 GB, free: 10.49 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.3703, allocations: 8 kB / 0.5538 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3703, allocations: 3.938 kB / 0.5538 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.333e-05/0.3704, allocations: 28.84 kB / 0.5538 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003462/0.3707, allocations: 91.83 kB / 0.5539 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001074/0.3718, allocations: 1.384 MB / 0.5553 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.3721, allocations: 23.92 kB / 0.5553 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.317e-05/0.3721, allocations: 12 kB / 0.5553 GB, free: 8.801 MB / 414.1 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.0001507/0.3722, allocations: 206 kB / 0.5555 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.006e-05/0.3723, allocations: 51.34 kB / 0.5555 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.3724, allocations: 57.28 kB / 0.5556 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3724, allocations: 4 kB / 0.5556 GB, free: 8.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.3725, allocations: 3.938 kB / 0.5556 GB, free: 8.477 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3725, allocations: 8.062 kB / 0.5556 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.3741, allocations: 1.067 MB / 0.5567 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3741, allocations: 0 / 0.5567 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003468/0.3745, allocations: 71.89 kB / 0.5567 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.924e-05/0.3746, allocations: 24.84 kB / 0.5568 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.3746, allocations: 8 kB / 0.5568 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009318/0.3755, allocations: 1.382 MB / 0.5581 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3756, allocations: 0 / 0.5581 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.3766, allocations: 0.624 MB / 0.5587 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.3768, allocations: 140.4 kB / 0.5589 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.736e-05/0.3768, allocations: 4 kB / 0.5589 GB, free: 4.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003207/0.3771, allocations: 31.98 kB / 0.5589 GB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.193e-05/0.3772, allocations: 15.97 kB / 0.5589 GB, free: 4.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.3772, allocations: 12 kB / 0.5589 GB, free: 4.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004115/0.3777, allocations: 370.8 kB / 0.5593 GB, free: 4.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3777, allocations: 4 kB / 0.5593 GB, free: 4.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006787/0.3784, allocations: 176 kB / 0.5594 GB, free: 4.305 MB / 414.1 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.0001166/0.3785, allocations: 111.1 kB / 0.5595 GB, free: 4.184 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.3798, allocations: 0.7355 MB / 0.5603 GB, free: 3.422 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.3798, allocations: 1 kB / 0.5603 GB, free: 3.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.3803, allocations: 270.6 kB / 0.5605 GB, free: 3.145 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006933/0.381, allocations: 118.2 kB / 0.5606 GB, free: 3.035 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.3831, allocations: 1.306 MB / 0.5619 GB, free: 1.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004431/0.3835, allocations: 0.8863 MB / 0.5628 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.3837, allocations: 43.38 kB / 0.5628 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3837, allocations: 0 / 0.5628 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of Templates: time 0.01297/0.3967, allocations: 9.591 MB / 0.5722 GB, free: 7.145 MB / 430.1 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)