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.001468/0.001468, allocations: 108 kB / 16.92 MB, free: 5.676 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.001634/0.001634, allocations: 190.1 kB / 17.85 MB, free: 5.176 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.775/1.775, allocations: 205.1 MB / 223.7 MB, free: 12.34 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.001308/0.001308, allocations: 47.92 kB / 280 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1292, allocations: 46.64 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01316/0.1424, allocations: 11.69 MB / 338.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00632/0.1488, allocations: 3.219 MB / 341.5 MB, free: 5.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001565/0.1505, allocations: 39.88 kB / 341.6 MB, free: 5.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.1523, allocations: 0.6401 MB / 342.2 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002439/0.1547, allocations: 0.6704 MB / 342.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009372/0.1557, allocations: 399.5 kB / 343.3 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002885/0.1586, allocations: 2.234 MB / 345.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.1599, allocations: 0.9928 MB / 346.5 MB, free: 472 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001319/0.1612, allocations: 0.825 MB / 347.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009119/0.1621, allocations: 0.9178 MB / 348.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002383/0.1624, allocations: 216 kB / 348.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000456/0.1628, allocations: 256 kB / 348.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003333/0.1632, allocations: 434.4 kB / 349.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.1643, allocations: 1.023 MB / 350.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00279/0.1671, allocations: 2.64 MB / 352.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.1671, allocations: 0 / 352.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1671, allocations: 0 / 352.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.239e-05/0.1671, allocations: 0 / 352.8 MB, free: 10.15 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.003508/0.1706, allocations: 2.068 MB / 354.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1707, allocations: 8.031 kB / 354.9 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007414/0.1714, allocations: 250.5 kB / 355.1 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001524/0.173, allocations: 1.032 MB / 356.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.674e-05/0.1731, allocations: 119.5 kB / 356.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/0.1733, allocations: 163.8 kB / 356.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.1756, allocations: 1.48 MB / 357.9 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.383e-05/0.1757, allocations: 11.84 kB / 357.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.1758, allocations: 60 kB / 358 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.274e-05/0.1758, allocations: 43.98 kB / 358 MB, free: 4.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.1776, allocations: 0.9708 MB / 359 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008639/0.1863, allocations: 6.582 MB / 365.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008858/0.1872, allocations: 396.1 kB / 366 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/0.1877, allocations: 226.1 kB / 366.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-05/0.1877, allocations: 4.438 kB / 366.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006069/0.1883, allocations: 268.8 kB / 366.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 4.258e-06/0.1883, allocations: 3.984 kB / 366.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.003574/0.1919, allocations: 1.754 MB / 368.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.1921, allocations: 178.7 kB / 368.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.1939, allocations: 1.269 MB / 369.6 MB, free: 8.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.263e-05/0.194, allocations: 41.69 kB / 369.7 MB, free: 8.527 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007396/0.1947, allocations: 0.8712 MB / 370.6 MB, free: 7.645 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/0.1949, allocations: 205.2 kB / 370.8 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/0.1952, allocations: 218.6 kB / 371 MB, free: 7.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1954, allocations: 349.9 kB / 371.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004333/0.1958, allocations: 242.5 kB / 371.5 MB, free: 6.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009156/0.1967, allocations: 0.7956 MB / 372.3 MB, free: 5.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.1982, allocations: 1.118 MB / 373.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.1983, allocations: 11.94 kB / 373.5 MB, free: 4.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00207/0.2003, allocations: 1.169 MB / 374.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.326e-05/0.2004, allocations: 41.7 kB / 374.7 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.2005, allocations: 20 kB / 374.7 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002811/0.2007, allocations: 65.62 kB / 374.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008073/0.2016, allocations: 267.6 kB / 375 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2185/0.42, allocations: 2.768 MB / 377.8 MB, free: 50.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.4222, allocations: 68.95 kB / 377.9 MB, free: 50.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/0.4226, allocations: 62.05 kB / 377.9 MB, free: 50.7 MB / 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.001474/0.4241, allocations: 355.2 kB / 378.3 MB, free: 50.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005843/0.4247, allocations: 133 kB / 378.4 MB, free: 50.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001566/0.4263, allocations: 0.552 MB / 379 MB, free: 50.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.4263, allocations: 5.5 kB / 379 MB, free: 50.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.4264, allocations: 1.031 kB / 379 MB, free: 50.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.4264, allocations: 3.344 kB / 379 MB, free: 50.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005057/0.4314, allocations: 1.879 MB / 380.8 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/0.4315, allocations: 5.344 kB / 380.8 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005422/0.432, allocations: 107.5 kB / 381 MB, free: 49.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002334/0.4323, allocations: 44.41 kB / 381 MB, free: 49.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.106e-05/0.4323, allocations: 20.67 kB / 381 MB, free: 49.6 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/0.4349, allocations: 2.74 MB / 383.8 MB, free: 46.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/0.4349, allocations: 7.5 kB / 383.8 MB, free: 46.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002359/0.4373, allocations: 0.925 MB / 384.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007085/0.438, allocations: 258.2 kB / 384.9 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.4382, allocations: 22.89 kB / 385 MB, free: 46.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005991/0.4388, allocations: 26.3 kB / 385 MB, free: 46.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.439, allocations: 60.23 kB / 385 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.237e-05/0.4391, allocations: 16.19 kB / 385.1 MB, free: 46.14 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002184/0.4412, allocations: 0.8483 MB / 385.9 MB, free: 45.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4413, allocations: 0 / 385.9 MB, free: 45.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002425/0.4437, allocations: 301 kB / 386.2 MB, free: 45.77 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.000447/0.4442, allocations: 137.5 kB / 386.3 MB, free: 45.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002829/0.447, allocations: 0.9388 MB / 387.3 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.4471, allocations: 1.031 kB / 387.3 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000836/0.4479, allocations: 484.7 kB / 387.8 MB, free: 44.85 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.4499, allocations: 345.4 kB / 388.1 MB, free: 44.73 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00541/0.4553, allocations: 2.552 MB / 390.6 MB, free: 43.24 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001146/0.4565, allocations: 1.175 MB / 391.8 MB, free: 42.5 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009862/0.4575, allocations: 169 kB / 392 MB, free: 42.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002312/0.4577, allocations: 85.52 kB / 392.1 MB, free: 42.45 MB / 318.1 MB Notification: Performance of SimCode: time 1.733e-06/0.4577, allocations: 0 / 392.1 MB, free: 42.45 MB / 318.1 MB Notification: Performance of Templates: time 0.0367/0.4944, allocations: 14.94 MB / 407 MB, free: 33.55 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)