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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 114.7 kB / 16.63 MB, free: 6.332 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.00144/0.00144, allocations: 187.2 kB / 17.55 MB, free: 5.805 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.741/1.741, allocations: 205.1 MB / 223.4 MB, free: 12.43 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.001956/0.001955, allocations: 43.94 kB / 279.5 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1553, allocations: 46.63 MB / 326.1 MB, free: 4.773 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01896/0.1743, allocations: 11.6 MB / 337.7 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009577/0.184, allocations: 3.181 MB / 340.9 MB, free: 5.914 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003198/0.1873, allocations: 39.88 kB / 341 MB, free: 5.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003613/0.191, allocations: 0.5594 MB / 341.5 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005139/0.1962, allocations: 0.5779 MB / 342.1 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.1978, allocations: 351.8 kB / 342.4 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005049/0.2029, allocations: 2.242 MB / 344.7 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.2048, allocations: 0.9889 MB / 345.7 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.2069, allocations: 0.8443 MB / 346.5 MB, free: 260 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.2082, allocations: 0.9024 MB / 347.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003212/0.2086, allocations: 220 kB / 347.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006072/0.2092, allocations: 256 kB / 347.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004523/0.2096, allocations: 430.4 kB / 348.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001551/0.2112, allocations: 1.019 MB / 349.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003824/0.215, allocations: 2.647 MB / 352 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.69e-05/0.2151, allocations: 0 / 352 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.2152, allocations: 0 / 352 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001403/0.2153, allocations: 0 / 352 MB, free: 10.78 MB / 302.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.006477/0.2218, allocations: 2.06 MB / 354 MB, free: 8.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.807e-05/0.2219, allocations: 12.03 kB / 354 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00112/0.223, allocations: 254.5 kB / 354.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002143/0.2252, allocations: 1.028 MB / 355.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.2253, allocations: 111.5 kB / 355.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.2255, allocations: 163.8 kB / 355.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004266/0.2298, allocations: 1.487 MB / 357.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.099e-05/0.2299, allocations: 11.83 kB / 357.1 MB, free: 5.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000209/0.2302, allocations: 68 kB / 357.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.86e-05/0.2303, allocations: 40 kB / 357.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00264/0.2329, allocations: 0.963 MB / 358.2 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.2468, allocations: 6.578 MB / 364.7 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.248, allocations: 400.1 kB / 365.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005662/0.2486, allocations: 222.1 kB / 365.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.748e-05/0.2486, allocations: 4.438 kB / 365.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007313/0.2494, allocations: 268.8 kB / 365.6 MB, free: 12.57 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 5.33e-06/0.2494, allocations: 3.938 kB / 365.6 MB, free: 12.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.005516/0.255, allocations: 1.765 MB / 367.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002356/0.2552, allocations: 158.8 kB / 367.5 MB, free: 10.51 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/0.2586, allocations: 1.281 MB / 368.8 MB, free: 9.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.2588, allocations: 37.7 kB / 368.8 MB, free: 9.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.2601, allocations: 0.8673 MB / 369.7 MB, free: 8.289 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003097/0.2604, allocations: 209.2 kB / 369.9 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004793/0.2609, allocations: 222.6 kB / 370.1 MB, free: 7.855 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000207/0.2611, allocations: 349.9 kB / 370.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005801/0.2617, allocations: 230.5 kB / 370.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.2628, allocations: 0.8112 MB / 371.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.2646, allocations: 1.111 MB / 372.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-05/0.2647, allocations: 4 kB / 372.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003205/0.2679, allocations: 1.173 MB / 373.8 MB, free: 3.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.268, allocations: 41.7 kB / 373.8 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.855e-05/0.2681, allocations: 16 kB / 373.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/0.2685, allocations: 82.25 kB / 373.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00093/0.2694, allocations: 267.6 kB / 374.2 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003392/0.2728, allocations: 2.78 MB / 377 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.2746, allocations: 68.05 kB / 377 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001762/0.2748, allocations: 64 kB / 377.1 MB, free: 20 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.2642/0.539, allocations: 349.7 kB / 377.5 MB, free: 51.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004422/0.5394, allocations: 136.4 kB / 377.6 MB, free: 51.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.541, allocations: 0.5501 MB / 378.1 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.541, allocations: 5.5 kB / 378.1 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.541, allocations: 4.156 kB / 378.1 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.541, allocations: 3.469 kB / 378.1 MB, free: 51.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004546/0.5456, allocations: 1.869 MB / 380 MB, free: 50.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.5456, allocations: 3.906 kB / 380 MB, free: 50.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005505/0.5462, allocations: 108.1 kB / 380.1 MB, free: 50.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002303/0.5464, allocations: 41.92 kB / 380.2 MB, free: 50.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.631e-05/0.5465, allocations: 18.19 kB / 380.2 MB, free: 50.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002133/0.5486, allocations: 2.748 MB / 382.9 MB, free: 47.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.326e-05/0.5487, allocations: 7.219 kB / 382.9 MB, free: 47.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.5509, allocations: 0.9179 MB / 383.9 MB, free: 47.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006094/0.5515, allocations: 265.8 kB / 384.1 MB, free: 47.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.5517, allocations: 17.42 kB / 384.1 MB, free: 47.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005926/0.5523, allocations: 34.28 kB / 384.2 MB, free: 47.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.5525, allocations: 53.31 kB / 384.2 MB, free: 47.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.5525, allocations: 19.23 kB / 384.2 MB, free: 47.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001458/0.554, allocations: 0.8483 MB / 385.1 MB, free: 46.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.554, allocations: 0 / 385.1 MB, free: 46.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001611/0.5556, allocations: 305 kB / 385.4 MB, free: 46.65 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * 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 (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,1,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.0003286/0.556, allocations: 136.8 kB / 385.5 MB, free: 46.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002111/0.5581, allocations: 0.9411 MB / 386.5 MB, free: 46.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.5581, allocations: 1.375 kB / 386.5 MB, free: 46.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007407/0.5589, allocations: 474.1 kB / 386.9 MB, free: 45.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001802/0.5607, allocations: 331.8 kB / 387.2 MB, free: 45.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005124/0.5658, allocations: 3.153 MB / 390.4 MB, free: 43.55 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009568/0.5668, allocations: 1.176 MB / 391.6 MB, free: 42.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007881/0.5676, allocations: 173.3 kB / 391.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/0.5678, allocations: 84.95 kB / 391.8 MB, free: 42.76 MB / 318.1 MB Notification: Performance of SimCode: time 2.444e-06/0.5678, allocations: 0 / 391.8 MB, free: 42.76 MB / 318.1 MB Notification: Performance of Templates: time 0.0339/0.6017, allocations: 14.89 MB / 406.7 MB, free: 34.06 MB / 318.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)