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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0009954/0.0009954, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.166/1.166, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001565/0.001565, allocations: 117.8 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002775/0.0002775, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08428/0.08458, allocations: 44.5 MB / 355.1 MB, free: 2.332 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2709/0.3556, allocations: 93.98 MB / 449.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.3559, allocations: 84.77 kB / 449.1 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07157/0.4275, allocations: 28.56 MB / 477.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4275, allocations: 0 / 477.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.142e-05/0.4276, allocations: 28 kB / 477.7 MB, free: 1.484 MB / 346.7 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.002099/0.4297, allocations: 1.28 MB / 479 MB, free: 160 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4297, allocations: 12.03 kB / 479 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006156/0.4304, allocations: 190.3 kB / 479.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.4317, allocations: 0.8166 MB / 480 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/0.4318, allocations: 74 kB / 480.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001276/0.4319, allocations: 99.91 kB / 480.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.4334, allocations: 0.9348 MB / 481.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.4335, allocations: 3.984 kB / 481.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.641e-05/0.4335, allocations: 44 kB / 481.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.4336, allocations: 24 kB / 481.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.4347, allocations: 0.6598 MB / 481.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004698/0.4394, allocations: 3.955 MB / 485.8 MB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006588/0.4401, allocations: 473.8 kB / 486.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/0.4402, allocations: 7.984 kB / 486.3 MB, free: 8.566 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.4402, allocations: 38.56 kB / 486.3 MB, free: 8.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.324e-06/0.4402, allocations: 0 / 486.3 MB, free: 8.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=48): time 0.002706/0.4429, allocations: 1.497 MB / 487.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.801e-05/0.443, allocations: 89.48 kB / 487.9 MB, free: 6.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/0.4438, allocations: 0.7113 MB / 488.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.4438, allocations: 37.64 kB / 488.6 MB, free: 6.078 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.4442, allocations: 0.5682 MB / 489.2 MB, free: 5.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.4443, allocations: 165.6 kB / 489.4 MB, free: 5.336 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.53e-05/0.4443, allocations: 16 kB / 489.4 MB, free: 5.32 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.032e-05/0.4444, allocations: 337.9 kB / 489.7 MB, free: 4.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003286/0.4447, allocations: 185.9 kB / 489.9 MB, free: 4.801 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.4452, allocations: 464.4 kB / 490.4 MB, free: 4.215 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004154/0.4456, allocations: 264.7 kB / 490.6 MB, free: 3.953 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4457, allocations: 4 kB / 490.6 MB, free: 3.949 MB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001219/0.4469, allocations: 0.8013 MB / 491.4 MB, free: 3.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.4469, allocations: 8.312 kB / 491.4 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.4469, allocations: 15.98 kB / 491.4 MB, free: 3.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002421/0.4472, allocations: 89.61 kB / 491.5 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005036/0.4477, allocations: 163.7 kB / 491.7 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/0.4498, allocations: 2.931 MB / 494.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/0.4504, allocations: 47.95 kB / 494.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.4505, allocations: 35.98 kB / 494.7 MB, free: 15.58 MB / 378.7 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 (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004229/0.4509, allocations: 257.6 kB / 495 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.451, allocations: 86.97 kB / 495 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009903/0.452, allocations: 0.5337 MB / 495.6 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.452, allocations: 4 kB / 495.6 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.452, allocations: 8 kB / 495.6 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.4521, allocations: 0 / 495.6 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.4543, allocations: 1.475 MB / 497.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.4543, allocations: 0 / 497.1 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/0.4546, allocations: 83.89 kB / 497.1 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002019/0.4548, allocations: 65.69 kB / 497.2 MB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.171e-05/0.4549, allocations: 20.19 kB / 497.2 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002217/0.4571, allocations: 2.915 MB / 0.4884 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4571, allocations: 4.062 kB / 0.4884 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.4585, allocations: 0.9188 MB / 0.4893 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002883/0.4588, allocations: 196 kB / 0.4895 GB, free: 8.535 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.893e-05/0.4589, allocations: 19.98 kB / 0.4895 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004083/0.4593, allocations: 31.98 kB / 0.4896 GB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.4594, allocations: 36.05 kB / 0.4896 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.4594, allocations: 19.98 kB / 0.4896 GB, free: 8.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006976/0.4601, allocations: 0.538 MB / 0.4901 GB, free: 7.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4601, allocations: 0 / 0.4901 GB, free: 7.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009169/0.4611, allocations: 248 kB / 0.4904 GB, free: 7.656 MB / 378.7 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 (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004083/0.4615, allocations: 305.5 kB / 0.4907 GB, free: 7.348 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.4627, allocations: 0.7309 MB / 0.4914 GB, free: 6.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4627, allocations: 0 / 0.4914 GB, free: 6.594 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006445/0.4634, allocations: 473.7 kB / 0.4918 GB, free: 6.105 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008479/0.4642, allocations: 209.4 kB / 0.492 GB, free: 5.906 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.467, allocations: 2.139 MB / 0.4941 GB, free: 3.719 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005522/0.4676, allocations: 1.036 MB / 0.4951 GB, free: 2.652 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004265/0.468, allocations: 111.3 kB / 0.4952 GB, free: 2.539 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000125/0.4682, allocations: 55.44 kB / 0.4953 GB, free: 2.484 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4682, allocations: 4 kB / 0.4953 GB, free: 2.48 MB / 378.7 MB Notification: Performance of Templates: time 0.01955/0.4877, allocations: 12 MB / 0.507 GB, free: 6.488 MB / 394.7 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)