Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.007255/0.007255, allocations: 101.5 kB / 15.73 MB, free: 5.586 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.001343/0.001343, allocations: 186.2 kB / 16.67 MB, free: 5.523 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.849/1.849, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.002095/0.002095, allocations: 55.92 kB / 326.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1309, allocations: 46.62 MB / 373.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.3514/0.4824, allocations: 8.038 MB / 381.2 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007414/0.4899, allocations: 2.668 MB / 383.9 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.4915, allocations: 28.84 kB / 383.9 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.4939, allocations: 0.5847 MB / 384.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002359/0.4963, allocations: 0.4896 MB / 385 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008132/0.4971, allocations: 248.8 kB / 385.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0024/0.4995, allocations: 1.472 MB / 386.7 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.5005, allocations: 0.5884 MB / 387.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.5017, allocations: 0.559 MB / 387.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000941/0.5027, allocations: 0.5906 MB / 388.4 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000273/0.5029, allocations: 137.1 kB / 388.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006265/0.5036, allocations: 175.9 kB / 388.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002977/0.5039, allocations: 282.5 kB / 389 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000847/0.5047, allocations: 0.6629 MB / 389.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003146/0.5079, allocations: 1.722 MB / 391.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.084e-05/0.5079, allocations: 1.344 kB / 391.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.88e-06/0.508, allocations: 0 / 391.4 MB, free: 4.066 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.689e-05/0.508, allocations: 4 kB / 391.4 MB, free: 4.062 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.003537/0.5115, allocations: 1.446 MB / 392.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.861e-05/0.5116, allocations: 9.703 kB / 392.9 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.5127, allocations: 189.8 kB / 393 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.5145, allocations: 0.7442 MB / 393.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/0.5146, allocations: 76.97 kB / 393.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002142/0.5148, allocations: 99.89 kB / 394 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002547/0.5174, allocations: 0.9346 MB / 394.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.367e-05/0.5174, allocations: 1.906 kB / 394.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.5175, allocations: 42.97 kB / 394.9 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.707e-05/0.5176, allocations: 24.73 kB / 395 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001786/0.5194, allocations: 0.6348 MB / 395.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00802/0.5274, allocations: 3.883 MB / 399.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.5286, allocations: 441.1 kB / 399.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008399/0.5294, allocations: 272.4 kB / 400.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.483e-05/0.5295, allocations: 5.25 kB / 400.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/0.5296, allocations: 42.14 kB / 400.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 3.436e-06/0.5296, allocations: 0 / 400.2 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.00416/0.5338, allocations: 1.394 MB / 401.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.5339, allocations: 81.23 kB / 401.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001871/0.5358, allocations: 0.8298 MB / 402.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.5359, allocations: 36.61 kB / 402.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007396/0.5366, allocations: 0.5466 MB / 403.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.5368, allocations: 161.8 kB / 403.3 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002981/0.5371, allocations: 133 kB / 403.4 MB, free: 12.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002365/0.5374, allocations: 332.5 kB / 403.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004719/0.5378, allocations: 167.7 kB / 403.9 MB, free: 12.04 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008311/0.5387, allocations: 464.5 kB / 404.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001281/0.54, allocations: 0.6578 MB / 405 MB, free: 10.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.54, allocations: 6.219 kB / 405 MB, free: 10.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001914/0.5419, allocations: 0.7693 MB / 405.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/0.542, allocations: 8.844 kB / 405.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-05/0.542, allocations: 10.41 kB / 405.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000383/0.5424, allocations: 82.86 kB / 405.9 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006197/0.5431, allocations: 160.2 kB / 406 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/0.5464, allocations: 3.143 MB / 409.2 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001013/0.5474, allocations: 35.98 kB / 409.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.5475, allocations: 32.25 kB / 409.2 MB, free: 7.281 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.000667/0.5482, allocations: 274.9 kB / 409.5 MB, free: 7.059 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.5484, allocations: 85.41 kB / 409.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.5494, allocations: 491.4 kB / 410.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.5495, allocations: 9.5 kB / 410.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.5495, allocations: 1.406 kB / 410.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.5495, allocations: 3.984 kB / 410.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.5523, allocations: 1.436 MB / 411.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5523, allocations: 2.531 kB / 411.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003541/0.5527, allocations: 69.59 kB / 411.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002444/0.5529, allocations: 72.98 kB / 411.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.772e-05/0.553, allocations: 12.56 kB / 411.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003/0.556, allocations: 3.119 MB / 414.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.556, allocations: 6.156 kB / 414.8 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001594/0.5576, allocations: 0.7654 MB / 415.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005708/0.5582, allocations: 197.7 kB / 415.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001127/0.5583, allocations: 16.52 kB / 415.8 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.5588, allocations: 30.64 kB / 415.8 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.5589, allocations: 34.39 kB / 415.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.34e-05/0.559, allocations: 14.34 kB / 415.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009953/0.56, allocations: 0.561 MB / 416.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.56, allocations: 0 / 416.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001177/0.5612, allocations: 205.4 kB / 416.6 MB, free: 1.32 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.0002764/0.5615, allocations: 129.6 kB / 416.7 MB, free: 1.207 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001397/0.5629, allocations: 0.6978 MB / 417.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.5629, allocations: 0.5625 kB / 417.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000794/0.5637, allocations: 435.9 kB / 417.9 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.5649, allocations: 238.5 kB / 418.1 MB, free: 304 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.5684, allocations: 1.707 MB / 419.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00075/0.5692, allocations: 0.9997 MB / 420.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004883/0.5696, allocations: 106.6 kB / 420.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.5698, allocations: 57.5 kB / 421 MB, free: 14.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.685e-06/0.5698, allocations: 0 / 421 MB, free: 14.29 MB / 350.1 MB Notification: Performance of Templates: time 0.02599/0.5958, allocations: 10.67 MB / 431.6 MB, free: 3.605 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)