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.0009919/0.0009919, allocations: 182.4 kB / 13.64 MB, free: 1.676 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.285/1.285, allocations: 194.3 MB / 208.4 MB, free: 6.703 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.001669/0.001669, allocations: 116.7 kB / 253.5 MB, free: 9.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.495e-05/2.508e-05, allocations: 4 kB / 304.9 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0717/0.07174, allocations: 44.49 MB / 349.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3059/0.3776, allocations: 89.86 MB / 439.3 MB, free: 5.723 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.3779, allocations: 83.64 kB / 439.4 MB, free: 5.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1037/0.4817, allocations: 40.65 MB / 480 MB, free: 3.492 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4817, allocations: 4 kB / 480 MB, free: 3.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.911e-05/0.4818, allocations: 32 kB / 480.1 MB, free: 3.457 MB / 330.7 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.00252/0.4843, allocations: 1.551 MB / 481.6 MB, free: 1.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.4844, allocations: 11.97 kB / 481.6 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007749/0.4852, allocations: 265.5 kB / 481.9 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001978/0.4871, allocations: 1.095 MB / 483 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001079/0.4873, allocations: 113.5 kB / 483.1 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.4875, allocations: 162.5 kB / 483.3 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002537/0.49, allocations: 1.429 MB / 484.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.844e-05/0.4901, allocations: 7.906 kB / 484.7 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/0.4902, allocations: 68 kB / 484.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.072e-05/0.4903, allocations: 36 kB / 484.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.4919, allocations: 0.9125 MB / 485.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008208/0.5001, allocations: 6.652 MB / 492.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006271/0.5008, allocations: 369.4 kB / 492.7 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003363/0.5012, allocations: 206 kB / 492.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.289e-05/0.5012, allocations: 12.38 kB / 492.9 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004238/0.5016, allocations: 253.7 kB / 493.2 MB, free: 6.199 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 2.595e-06/0.5017, allocations: 3.938 kB / 493.2 MB, free: 6.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=56): time 0.002786/0.5044, allocations: 1.616 MB / 494.8 MB, free: 4.516 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.583e-05/0.5046, allocations: 188.4 kB / 495 MB, free: 4.285 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001405/0.506, allocations: 1.077 MB / 496.1 MB, free: 3.195 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.506, allocations: 33.7 kB / 496.1 MB, free: 3.156 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006571/0.5067, allocations: 0.8711 MB / 497 MB, free: 2.273 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.5068, allocations: 205.2 kB / 497.2 MB, free: 2.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.5069, allocations: 24 kB / 497.2 MB, free: 2.047 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.507, allocations: 353.9 kB / 497.5 MB, free: 1.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003462/0.5074, allocations: 206.6 kB / 497.7 MB, free: 1.492 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000754/0.5081, allocations: 0.7879 MB / 498.5 MB, free: 436 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005276/0.5087, allocations: 380.6 kB / 498.9 MB, free: 52 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.5087, allocations: 8 kB / 498.9 MB, free: 44 kB / 346.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001664/0.5104, allocations: 1.138 MB / 0.4883 GB, free: 14.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.054e-05/0.5104, allocations: 37.7 kB / 0.4884 GB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.5105, allocations: 20 kB / 0.4884 GB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/0.5107, allocations: 69.7 kB / 0.4884 GB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008255/0.5115, allocations: 279.8 kB / 0.4887 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.5135, allocations: 2.572 MB / 0.4912 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009559/0.5144, allocations: 72.05 kB / 0.4913 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.856e-05/0.5145, allocations: 63.98 kB / 0.4914 GB, free: 11.5 MB / 362.7 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.0001988/0.5147, allocations: 196.3 kB / 0.4915 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.5149, allocations: 130.4 kB / 0.4917 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009992/0.5159, allocations: 0.5213 MB / 0.4922 GB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.81e-06/0.5159, allocations: 4 kB / 0.4922 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.5159, allocations: 4 kB / 0.4922 GB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.5159, allocations: 3.984 kB / 0.4922 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002645/0.5186, allocations: 1.896 MB / 0.494 GB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.5186, allocations: 4 kB / 0.494 GB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004242/0.519, allocations: 111.8 kB / 0.4941 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001451/0.5192, allocations: 46.17 kB / 0.4942 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.5192, allocations: 15.98 kB / 0.4942 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001633/0.5209, allocations: 2.548 MB / 0.4967 GB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.5209, allocations: 4 kB / 0.4967 GB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.5221, allocations: 1.079 MB / 0.4977 GB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003978/0.5225, allocations: 255.4 kB / 0.498 GB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.5226, allocations: 16 kB / 0.498 GB, free: 4.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.5232, allocations: 39.97 kB / 0.498 GB, free: 4.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.5233, allocations: 55.83 kB / 0.4981 GB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.5233, allocations: 16 kB / 0.4981 GB, free: 3.949 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001088/0.5244, allocations: 0.7936 MB / 0.4989 GB, free: 3.152 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5244, allocations: 0 / 0.4989 GB, free: 3.152 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001221/0.5257, allocations: 340 kB / 0.4992 GB, free: 2.82 MB / 362.7 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.0004696/0.5261, allocations: 315.3 kB / 0.4995 GB, free: 2.504 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.5274, allocations: 0.886 MB / 0.5004 GB, free: 1.582 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5274, allocations: 0.8125 kB / 0.5004 GB, free: 1.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005933/0.528, allocations: 449.2 kB / 0.5008 GB, free: 1.117 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.5293, allocations: 307.5 kB / 0.5011 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.5325, allocations: 1.901 MB / 0.503 GB, free: 14.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007258/0.5332, allocations: 1.213 MB / 0.5041 GB, free: 13.59 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006264/0.5339, allocations: 167.3 kB / 0.5043 GB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.534, allocations: 95.42 kB / 0.5044 GB, free: 13.33 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5341, allocations: 0 / 0.5044 GB, free: 13.33 MB / 378.7 MB Notification: Performance of Templates: time 0.02931/0.5634, allocations: 16.19 MB / 0.5202 GB, free: 13.11 MB / 394.7 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)