Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 109.9 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.888/1.888, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 51.94 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1453, allocations: 46.61 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.3261/0.4715, allocations: 8.036 MB / 382.5 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006415/0.478, allocations: 2.674 MB / 385.2 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001273/0.4793, allocations: 23.53 kB / 385.2 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002119/0.4815, allocations: 0.5625 MB / 385.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001961/0.4834, allocations: 466 kB / 386.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007771/0.4842, allocations: 253.2 kB / 386.5 MB, free: 7.066 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002219/0.4864, allocations: 1.467 MB / 388 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009916/0.4874, allocations: 0.5793 MB / 388.5 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.4885, allocations: 0.5584 MB / 389.1 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008291/0.4894, allocations: 0.5984 MB / 389.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002028/0.4896, allocations: 137.7 kB / 389.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004953/0.4901, allocations: 174.5 kB / 390 MB, free: 5.391 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002443/0.4903, allocations: 282.7 kB / 390.3 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007275/0.4911, allocations: 0.655 MB / 390.9 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002519/0.4936, allocations: 1.731 MB / 392.7 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4936, allocations: 0 / 392.7 MB, free: 4.105 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4936, allocations: 0 / 392.7 MB, free: 4.105 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.4937, allocations: 5.062 kB / 392.7 MB, free: 4.102 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00266/0.4963, allocations: 1.442 MB / 394.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.4964, allocations: 10.44 kB / 394.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007155/0.4971, allocations: 189 kB / 394.3 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.4987, allocations: 0.7449 MB / 395 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.126e-05/0.4987, allocations: 72.56 kB / 395.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.4989, allocations: 100.8 kB / 395.2 MB, free: 2.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001805/0.5007, allocations: 0.9396 MB / 396.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.86e-05/0.5008, allocations: 7.281 kB / 396.2 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.627e-05/0.5009, allocations: 40.25 kB / 396.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/0.5009, allocations: 24.22 kB / 396.2 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.5022, allocations: 0.6391 MB / 396.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005815/0.5081, allocations: 3.879 MB / 400.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007376/0.5088, allocations: 440 kB / 401.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006257/0.5095, allocations: 272.3 kB / 401.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.558e-05/0.5095, allocations: 4.906 kB / 401.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.16e-05/0.5096, allocations: 37.67 kB / 401.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.926e-06/0.5096, allocations: 0 / 401.5 MB, free: 14.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.003239/0.5128, allocations: 1.402 MB / 402.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/0.5129, allocations: 82.61 kB / 403 MB, free: 13.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001314/0.5142, allocations: 0.8303 MB / 403.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.5143, allocations: 31.95 kB / 403.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004664/0.5148, allocations: 0.5502 MB / 404.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.5149, allocations: 158 kB / 404.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002157/0.5151, allocations: 133.2 kB / 404.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.5153, allocations: 337 kB / 405 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003499/0.5157, allocations: 163.4 kB / 405.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000567/0.5163, allocations: 463.2 kB / 405.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009773/0.5172, allocations: 0.6611 MB / 406.3 MB, free: 11 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.5173, allocations: 3.5 kB / 406.3 MB, free: 11 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001441/0.5187, allocations: 0.7689 MB / 407 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.834e-05/0.5187, allocations: 10.22 kB / 407 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/0.5188, allocations: 13 kB / 407.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003032/0.5191, allocations: 87.17 kB / 407.1 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.5196, allocations: 152.4 kB / 407.3 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.5223, allocations: 3.145 MB / 410.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007582/0.5231, allocations: 32.61 kB / 410.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.104e-05/0.5232, allocations: 35.88 kB / 410.5 MB, free: 7.305 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005664/0.5237, allocations: 267.4 kB / 410.8 MB, free: 7.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.5239, allocations: 89.17 kB / 410.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001043/0.5249, allocations: 492.7 kB / 411.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.525, allocations: 8.125 kB / 411.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.525, allocations: 0.9688 kB / 411.3 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.525, allocations: 5.016 kB / 411.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00259/0.5276, allocations: 1.432 MB / 412.8 MB, free: 5.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.135e-06/0.5276, allocations: 6.594 kB / 412.8 MB, free: 5.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003164/0.5279, allocations: 69.14 kB / 412.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002239/0.5282, allocations: 76.95 kB / 412.9 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.994e-05/0.5282, allocations: 9.438 kB / 412.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.5308, allocations: 3.125 MB / 416.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5308, allocations: 6.188 kB / 416.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.5323, allocations: 0.7664 MB / 416.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004878/0.5328, allocations: 198.8 kB / 417 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.547e-05/0.533, allocations: 16.44 kB / 417 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004053/0.5334, allocations: 28.94 kB / 417.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.616e-05/0.5335, allocations: 31.22 kB / 417.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.5335, allocations: 20.11 kB / 417.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009377/0.5344, allocations: 0.5588 MB / 417.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5344, allocations: 0 / 417.7 MB, free: 1.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001122/0.5356, allocations: 205.2 kB / 417.9 MB, free: 1.34 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (38): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (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.0002499/0.5358, allocations: 128 kB / 418 MB, free: 1.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.5371, allocations: 0.6885 MB / 418.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.5371, allocations: 0.5625 kB / 418.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006801/0.5378, allocations: 443.4 kB / 419.1 MB, free: 464 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.539, allocations: 238.6 kB / 419.4 MB, free: 332 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.5423, allocations: 1.713 MB / 421.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006832/0.5431, allocations: 0.9994 MB / 422.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004797/0.5435, allocations: 108.4 kB / 422.2 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.5437, allocations: 54.66 kB / 422.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5437, allocations: 0 / 422.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Templates: time 0.0232/0.5669, allocations: 10.89 MB / 433.1 MB, free: 3.422 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)