Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.006867/0.006867, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001322/0.001322, allocations: 196.2 kB / 16.67 MB, free: 5.926 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.768/1.768, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.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.001203/0.001203, allocations: 58.05 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1342, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01392/0.1482, allocations: 11.7 MB / 384.9 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008565/0.1568, allocations: 3.223 MB / 388.1 MB, free: 2.32 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002951/0.1599, allocations: 39.88 kB / 388.1 MB, free: 2.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003378/0.1633, allocations: 0.6597 MB / 388.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004917/0.1683, allocations: 0.7329 MB / 389.5 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001776/0.1701, allocations: 391.5 kB / 389.9 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005655/0.1757, allocations: 2.254 MB / 392.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002039/0.1778, allocations: 0.9849 MB / 393.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002162/0.18, allocations: 0.8444 MB / 394 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.1813, allocations: 0.9178 MB / 394.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003387/0.1816, allocations: 216 kB / 395.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006692/0.1823, allocations: 256 kB / 395.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004855/0.1828, allocations: 434.4 kB / 395.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001572/0.1844, allocations: 1.015 MB / 396.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004004/0.1884, allocations: 2.682 MB / 399.5 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.289e-05/0.1885, allocations: 3.938 kB / 399.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1885, allocations: 0 / 399.5 MB, free: 6.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.22e-05/0.1886, allocations: 0 / 399.5 MB, free: 6.824 MB / 334.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.005107/0.1937, allocations: 2.064 MB / 401.6 MB, free: 4.695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.1938, allocations: 8.031 kB / 401.6 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008671/0.1946, allocations: 250.5 kB / 401.8 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/0.1971, allocations: 1.044 MB / 402.9 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/0.1972, allocations: 115.5 kB / 403 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002802/0.1975, allocations: 159.8 kB / 403.1 MB, free: 3.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002904/0.2004, allocations: 1.495 MB / 404.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.953e-05/0.2005, allocations: 4 kB / 404.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001434/0.2007, allocations: 64 kB / 404.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.354e-05/0.2007, allocations: 36 kB / 404.7 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.2027, allocations: 0.9785 MB / 405.7 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/0.2142, allocations: 6.523 MB / 412.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009763/0.2152, allocations: 396.1 kB / 412.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005038/0.2158, allocations: 233.9 kB / 412.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.036e-05/0.2158, allocations: 12.42 kB / 412.9 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005848/0.2164, allocations: 260.8 kB / 413.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 4.408e-06/0.2164, allocations: 0 / 413.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004931/0.2214, allocations: 1.765 MB / 414.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/0.2216, allocations: 166.8 kB / 415 MB, free: 6.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002393/0.224, allocations: 1.277 MB / 416.3 MB, free: 5.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.783e-05/0.2241, allocations: 33.7 kB / 416.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.2251, allocations: 0.8674 MB / 417.2 MB, free: 4.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/0.2254, allocations: 213.1 kB / 417.4 MB, free: 4.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003879/0.2258, allocations: 218.6 kB / 417.6 MB, free: 3.938 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.226, allocations: 349.9 kB / 418 MB, free: 3.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005415/0.2266, allocations: 230.5 kB / 418.2 MB, free: 3.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.2278, allocations: 0.8034 MB / 419 MB, free: 2.289 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001829/0.2296, allocations: 1.126 MB / 420.1 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.709e-05/0.2297, allocations: 4 kB / 420.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002546/0.2322, allocations: 1.169 MB / 421.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.345e-05/0.2323, allocations: 37.7 kB / 421.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.611e-05/0.2324, allocations: 24.03 kB / 421.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000314/0.2327, allocations: 73.62 kB / 421.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008443/0.2335, allocations: 263.5 kB / 421.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00267/0.2362, allocations: 2.773 MB / 424.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.2378, allocations: 71.91 kB / 424.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.2379, allocations: 64 kB / 424.6 MB, free: 12.11 MB / 366.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.001016/0.2389, allocations: 353.3 kB / 424.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/0.2393, allocations: 130.4 kB / 425.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/0.2405, allocations: 0.5567 MB / 425.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.2405, allocations: 7.938 kB / 425.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.2405, allocations: 4 kB / 425.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.2406, allocations: 3.984 kB / 425.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/0.2442, allocations: 1.862 MB / 427.5 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.2443, allocations: 4 kB / 427.5 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/0.2447, allocations: 107.8 kB / 427.6 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001928/0.2449, allocations: 42.17 kB / 427.7 MB, free: 8.891 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.245, allocations: 23.98 kB / 427.7 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.2474, allocations: 2.749 MB / 430.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.2475, allocations: 4 kB / 430.4 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.2494, allocations: 0.9161 MB / 431.3 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006097/0.25, allocations: 255.4 kB / 431.6 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001522/0.2501, allocations: 19.98 kB / 431.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005502/0.2507, allocations: 31.98 kB / 431.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.2509, allocations: 55.59 kB / 431.7 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.2509, allocations: 20 kB / 431.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001546/0.2524, allocations: 0.8461 MB / 432.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.2525, allocations: 0 / 432.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001513/0.254, allocations: 312 kB / 432.9 MB, free: 3.301 MB / 366.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.0003759/0.2544, allocations: 127 kB / 433 MB, free: 3.168 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002157/0.2565, allocations: 0.9254 MB / 433.9 MB, free: 2.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/0.2566, allocations: 0 / 433.9 MB, free: 2.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008247/0.2574, allocations: 474.1 kB / 434.4 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001958/0.2594, allocations: 337.1 kB / 434.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006306/0.2657, allocations: 2.518 MB / 437.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/0.2672, allocations: 1.174 MB / 438.4 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001002/0.2682, allocations: 171.3 kB / 438.6 MB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/0.2684, allocations: 83.44 kB / 438.7 MB, free: 13.33 MB / 382.1 MB Notification: Performance of SimCode: time 2.665e-06/0.2684, allocations: 0 / 438.7 MB, free: 13.33 MB / 382.1 MB Notification: Performance of Templates: time 0.4182/0.6867, allocations: 15.22 MB / 453.9 MB, free: 69.39 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)