Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 115.1 kB / 17.07 MB, free: 5.973 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.001423/0.001423, 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.993/1.993, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001339/0.001339, allocations: 47.92 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1329, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.3157/0.4486, allocations: 8.172 MB / 382.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009351/0.458, allocations: 2.735 MB / 385.4 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002943/0.4611, allocations: 23.88 kB / 385.4 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004272/0.4654, allocations: 0.5534 MB / 386 MB, free: 7.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004157/0.4697, allocations: 481.9 kB / 386.4 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001862/0.4716, allocations: 261.7 kB / 386.7 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00528/0.4769, allocations: 1.501 MB / 388.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00227/0.4792, allocations: 0.5826 MB / 388.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002843/0.4821, allocations: 0.5586 MB / 389.3 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002695/0.4848, allocations: 0.618 MB / 390 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00107/0.4859, allocations: 140 kB / 390.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002065/0.488, allocations: 180.5 kB / 390.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009218/0.4889, allocations: 280.1 kB / 390.5 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003636/0.4926, allocations: 0.6782 MB / 391.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006587/0.4992, allocations: 1.751 MB / 393 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.435e-05/0.4993, allocations: 1.375 kB / 393 MB, free: 3.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.671e-06/0.4993, allocations: 0 / 393 MB, free: 3.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001092/0.4995, allocations: 4 kB / 393 MB, free: 3.902 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.005344/0.5048, allocations: 1.474 MB / 394.5 MB, free: 2.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.588e-05/0.5049, allocations: 10.84 kB / 394.5 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.506, allocations: 194.9 kB / 394.7 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002207/0.5083, allocations: 0.7618 MB / 395.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.22e-05/0.5084, allocations: 73.95 kB / 395.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002186/0.5086, allocations: 96.56 kB / 395.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.5109, allocations: 0.9478 MB / 396.5 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.453e-05/0.5109, allocations: 5.844 kB / 396.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.511, allocations: 40.72 kB / 396.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/0.5111, allocations: 29.25 kB / 396.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/0.5127, allocations: 0.6509 MB / 397.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006533/0.5192, allocations: 3.902 MB / 401.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008105/0.5201, allocations: 447 kB / 401.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007372/0.5208, allocations: 288.1 kB / 401.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.193e-05/0.5209, allocations: 4.531 kB / 401.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.5209, allocations: 37.56 kB / 401.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.637e-06/0.5209, allocations: 0 / 401.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.00386/0.5248, allocations: 1.55 MB / 403.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/0.5249, allocations: 81.55 kB / 403.6 MB, free: 13.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001425/0.5263, allocations: 0.8378 MB / 404.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.074e-05/0.5264, allocations: 32.02 kB / 404.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005042/0.5269, allocations: 0.5728 MB / 405 MB, free: 12.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.527, allocations: 157.5 kB / 405.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002138/0.5273, allocations: 133.3 kB / 405.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5274, allocations: 332.5 kB / 405.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/0.5278, allocations: 176.6 kB / 405.8 MB, free: 11.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006251/0.5284, allocations: 475.4 kB / 406.2 MB, free: 11.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.5295, allocations: 0.6805 MB / 406.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.5295, allocations: 2.25 kB / 406.9 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001666/0.5312, allocations: 0.7929 MB / 407.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.5312, allocations: 12.81 kB / 407.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.5312, allocations: 10.69 kB / 407.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003326/0.5316, allocations: 78.23 kB / 407.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005659/0.5321, allocations: 167.8 kB / 408 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.5349, allocations: 3.141 MB / 411.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000863/0.5358, allocations: 35.02 kB / 411.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.29e-05/0.5359, allocations: 44.22 kB / 411.2 MB, free: 6.816 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 (85): * Single equations (assignments): 83 * 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.0006946/0.5366, allocations: 265.6 kB / 411.5 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002734/0.5369, allocations: 97.81 kB / 411.6 MB, free: 6.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001327/0.5382, allocations: 0.494 MB / 412 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/0.5382, allocations: 4.75 kB / 412 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.5382, allocations: 5.125 kB / 412.1 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5383, allocations: 3.984 kB / 412.1 MB, free: 6.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002773/0.541, allocations: 1.467 MB / 413.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.5411, allocations: 1.156 kB / 413.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003559/0.5414, allocations: 73.8 kB / 413.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002328/0.5417, allocations: 79.52 kB / 413.7 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.5417, allocations: 8.531 kB / 413.7 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002832/0.5445, allocations: 3.122 MB / 416.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.5446, allocations: 2.5 kB / 416.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.5461, allocations: 0.8051 MB / 417.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.5465, allocations: 205.2 kB / 417.8 MB, free: 1.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.752e-05/0.5466, allocations: 14.66 kB / 417.8 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004503/0.5471, allocations: 27.42 kB / 417.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-05/0.5472, allocations: 32.61 kB / 417.9 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.5472, allocations: 18.98 kB / 417.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008793/0.5481, allocations: 0.5684 MB / 418.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5481, allocations: 4 kB / 418.5 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001143/0.5493, allocations: 209.2 kB / 418.7 MB, free: 0.7891 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 (39): * Single equations (assignments): 37 * 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.000291/0.5496, allocations: 130 kB / 418.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001509/0.5511, allocations: 0.7113 MB / 419.5 MB, free: 224 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.5511, allocations: 5.375 kB / 419.5 MB, free: 220 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009019/0.552, allocations: 440.9 kB / 420 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/0.5533, allocations: 235.2 kB / 420.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004159/0.5575, allocations: 1.741 MB / 421.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007248/0.5583, allocations: 1.013 MB / 422.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000572/0.5588, allocations: 103.3 kB / 423 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001433/0.559, allocations: 59.44 kB / 423.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of SimCode: time 1.443e-06/0.559, allocations: 4 kB / 423.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Templates: time 0.02802/0.587, allocations: 10.85 MB / 434 MB, free: 2.57 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)