Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009606/0.0009607, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.237/1.237, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001583/0.001583, allocations: 118.2 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.227e-05/1.222e-05, allocations: 0 / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07255/0.07257, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3617/0.4343, allocations: 89.19 MB / 431.8 MB, free: 6.902 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.4347, allocations: 80.83 kB / 431.9 MB, free: 6.859 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.17/0.6047, allocations: 40.09 MB / 471.9 MB, free: 6.012 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6048, allocations: 0 / 471.9 MB, free: 6.012 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.00018/0.605, allocations: 39.98 kB / 472 MB, free: 5.973 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.005053/0.61, allocations: 1.551 MB / 473.5 MB, free: 4.363 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.6101, allocations: 16.02 kB / 473.5 MB, free: 4.348 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001566/0.6117, allocations: 261.5 kB / 473.8 MB, free: 4.09 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003843/0.6156, allocations: 1.098 MB / 474.9 MB, free: 2.949 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.6157, allocations: 52 kB / 475 MB, free: 2.898 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004053/0.6161, allocations: 95.91 kB / 475 MB, free: 2.805 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003207/0.6193, allocations: 0.8145 MB / 475.9 MB, free: 1.988 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.6233, allocations: 1.2 MB / 477.1 MB, free: 0.7148 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.229e-05/0.6234, allocations: 15.89 kB / 477.1 MB, free: 0.6992 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/0.6236, allocations: 0 / 477.1 MB, free: 0.6992 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.598e-05/0.6237, allocations: 43.98 kB / 477.1 MB, free: 0.6562 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.6372, allocations: 6.354 MB / 483.5 MB, free: 9.957 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009729/0.6382, allocations: 345.7 kB / 483.8 MB, free: 9.609 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005199/0.6387, allocations: 188.1 kB / 484 MB, free: 9.426 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.436e-05/0.6388, allocations: 8.438 kB / 484 MB, free: 9.418 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006096/0.6394, allocations: 236.8 kB / 484.2 MB, free: 9.164 MB / 363.1 MB Notification: Performance of pre-optimization done (n=50): time 3.046e-06/0.6395, allocations: 4 kB / 484.2 MB, free: 9.16 MB / 363.1 MB Notification: Performance of matching and sorting (n=56): time 0.004634/0.6441, allocations: 1.502 MB / 485.7 MB, free: 7.594 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.6443, allocations: 196.5 kB / 485.9 MB, free: 7.355 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002326/0.6466, allocations: 0.8437 MB / 486.8 MB, free: 6.5 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 6.519e-05/0.6467, allocations: 33.69 kB / 486.8 MB, free: 6.461 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001089/0.6478, allocations: 0.8781 MB / 487.7 MB, free: 5.57 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002543/0.6481, allocations: 201.1 kB / 487.9 MB, free: 5.371 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.6481, allocations: 0 / 487.9 MB, free: 5.371 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.6483, allocations: 353.9 kB / 488.2 MB, free: 5.02 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006239/0.649, allocations: 182.6 kB / 488.4 MB, free: 4.84 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.6502, allocations: 0.754 MB / 489.2 MB, free: 3.805 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009687/0.6512, allocations: 321.8 kB / 489.5 MB, free: 3.496 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.852e-05/0.6512, allocations: 11.94 kB / 489.5 MB, free: 3.484 MB / 363.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.003167/0.6544, allocations: 0.9567 MB / 490.4 MB, free: 2.512 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.907e-05/0.6545, allocations: 49.12 kB / 490.5 MB, free: 2.461 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.6545, allocations: 16.75 kB / 490.5 MB, free: 2.445 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003186/0.6549, allocations: 73.64 kB / 490.6 MB, free: 2.367 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.6564, allocations: 267.6 kB / 490.8 MB, free: 2.105 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/0.6591, allocations: 2.477 MB / 493.3 MB, free: 15.4 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.6609, allocations: 43.89 kB / 493.4 MB, free: 15.36 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.661, allocations: 60 kB / 493.4 MB, free: 15.3 MB / 379.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002952/0.6614, allocations: 176.2 kB / 493.6 MB, free: 15.12 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.6616, allocations: 114.6 kB / 493.7 MB, free: 15.01 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001381/0.663, allocations: 460.3 kB / 494.2 MB, free: 14.54 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.663, allocations: 4 kB / 494.2 MB, free: 14.54 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.866e-06/0.663, allocations: 3.953 kB / 494.2 MB, free: 14.53 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.6631, allocations: 11.98 kB / 494.2 MB, free: 14.52 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003849/0.6669, allocations: 1.658 MB / 495.8 MB, free: 12.76 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.407e-06/0.667, allocations: 8.062 kB / 495.8 MB, free: 12.75 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007886/0.6678, allocations: 103.8 kB / 495.9 MB, free: 12.65 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002127/0.668, allocations: 41.7 kB / 496 MB, free: 12.61 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.732e-05/0.6681, allocations: 11.98 kB / 496 MB, free: 12.59 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002403/0.6705, allocations: 2.458 MB / 498.5 MB, free: 9.906 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.059e-05/0.6705, allocations: 4 kB / 498.5 MB, free: 9.902 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.6725, allocations: 1.004 MB / 499.5 MB, free: 8.754 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006035/0.6731, allocations: 231.7 kB / 499.7 MB, free: 8.508 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002001/0.6733, allocations: 8 kB / 499.7 MB, free: 8.5 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008771/0.6742, allocations: 23.97 kB / 499.7 MB, free: 8.477 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.6744, allocations: 59.83 kB / 499.8 MB, free: 8.418 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.125e-05/0.6744, allocations: 20 kB / 499.8 MB, free: 8.398 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001518/0.676, allocations: 0.611 MB / 0.4887 GB, free: 7.781 MB / 379.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.676, allocations: 0 / 0.4887 GB, free: 7.781 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001952/0.6779, allocations: 284 kB / 0.4889 GB, free: 7.504 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005605/0.6785, allocations: 275.5 kB / 0.4892 GB, free: 7.23 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001895/0.6804, allocations: 0.8115 MB / 0.49 GB, free: 6.391 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6804, allocations: 10.44 kB / 0.49 GB, free: 6.383 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009082/0.6814, allocations: 416.6 kB / 0.4904 GB, free: 5.957 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00207/0.6835, allocations: 278.7 kB / 0.4907 GB, free: 5.684 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005515/0.689, allocations: 1.855 MB / 0.4925 GB, free: 3.742 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001144/0.6902, allocations: 1.208 MB / 0.4937 GB, free: 2.504 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.001227/0.6914, allocations: 154.2 kB / 0.4938 GB, free: 2.352 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.6917, allocations: 83.42 kB / 0.4939 GB, free: 2.27 MB / 379.1 MB Notification: Performance of SimCode: time 9.81e-07/0.6917, allocations: 0 / 0.4939 GB, free: 2.27 MB / 379.1 MB Notification: Performance of Templates: time 0.04301/0.7347, allocations: 12.24 MB / 0.5058 GB, free: 6.055 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)