Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.009649/0.009649, allocations: 105.5 kB / 15.74 MB, free: 6.008 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.001812/0.001812, allocations: 196.5 kB / 16.68 MB, free: 5.93 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 / 222.5 MB, free: 4.277 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.00149/0.00149, allocations: 50.02 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1471, allocations: 46.64 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.0161/0.1633, allocations: 11.68 MB / 384.9 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009988/0.1733, allocations: 3.223 MB / 388.1 MB, free: 2.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003788/0.1773, allocations: 35.94 kB / 388.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003789/0.1811, allocations: 0.6635 MB / 388.8 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005554/0.1867, allocations: 0.7251 MB / 389.5 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00198/0.1887, allocations: 403.5 kB / 389.9 MB, free: 480 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00534/0.1941, allocations: 2.257 MB / 392.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002833/0.1969, allocations: 0.9965 MB / 393.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002689/0.1996, allocations: 0.8405 MB / 394 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002744/0.2024, allocations: 0.9139 MB / 394.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.2035, allocations: 216 kB / 395.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001893/0.2054, allocations: 256 kB / 395.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006322/0.2061, allocations: 426.5 kB / 395.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002678/0.2088, allocations: 1.023 MB / 396.8 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004789/0.2136, allocations: 2.678 MB / 399.5 MB, free: 6.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.305e-05/0.2137, allocations: 4 kB / 399.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.824e-06/0.2137, allocations: 0 / 399.5 MB, free: 6.793 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.71e-05/0.2138, allocations: 3.938 kB / 399.5 MB, free: 6.789 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.004308/0.2181, allocations: 2.06 MB / 401.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.2181, allocations: 8.031 kB / 401.6 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007677/0.2189, allocations: 254.5 kB / 401.8 MB, free: 4.406 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.2208, allocations: 1.044 MB / 402.9 MB, free: 3.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.942e-05/0.2209, allocations: 111.5 kB / 403 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000223/0.2211, allocations: 171.8 kB / 403.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002557/0.2237, allocations: 1.483 MB / 404.6 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.642e-05/0.2237, allocations: 4 kB / 404.6 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/0.2239, allocations: 64 kB / 404.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.434e-05/0.2239, allocations: 40 kB / 404.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001897/0.2258, allocations: 0.9746 MB / 405.7 MB, free: 404 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008841/0.2347, allocations: 6.523 MB / 412.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008691/0.2356, allocations: 400.1 kB / 412.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004457/0.236, allocations: 229.9 kB / 412.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.922e-05/0.2361, allocations: 8.375 kB / 412.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005358/0.2366, allocations: 264.8 kB / 413.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.928e-06/0.2367, allocations: 0 / 413.1 MB, free: 8.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.003643/0.2403, allocations: 1.769 MB / 414.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.2404, allocations: 162.8 kB / 415 MB, free: 6.547 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.2422, allocations: 1.277 MB / 416.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.955e-05/0.2423, allocations: 33.7 kB / 416.4 MB, free: 5.215 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006705/0.243, allocations: 0.8673 MB / 417.2 MB, free: 4.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.2432, allocations: 213.1 kB / 417.4 MB, free: 4.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.2435, allocations: 218.6 kB / 417.6 MB, free: 3.906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2436, allocations: 353.9 kB / 418 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004718/0.2441, allocations: 230.5 kB / 418.2 MB, free: 3.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009326/0.245, allocations: 0.8034 MB / 419 MB, free: 2.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.2465, allocations: 1.118 MB / 420.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.316e-05/0.2465, allocations: 8 kB / 420.1 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002/0.2485, allocations: 1.165 MB / 421.3 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.251e-05/0.2486, allocations: 41.7 kB / 421.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.2486, allocations: 24.06 kB / 421.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003089/0.2489, allocations: 69.62 kB / 421.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007451/0.2497, allocations: 267.5 kB / 421.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/0.2517, allocations: 2.773 MB / 424.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.2527, allocations: 71.95 kB / 424.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.035e-05/0.2528, allocations: 56 kB / 424.6 MB, free: 12.08 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.0006548/0.2535, allocations: 365.3 kB / 425 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.2536, allocations: 130.4 kB / 425.1 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001032/0.2547, allocations: 0.5489 MB / 425.6 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.2547, allocations: 11.94 kB / 425.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2547, allocations: 0 / 425.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.2547, allocations: 0 / 425.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/0.2575, allocations: 1.87 MB / 427.5 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.2576, allocations: 4 kB / 427.5 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.258, allocations: 103.8 kB / 427.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001563/0.2582, allocations: 50.16 kB / 427.7 MB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.241e-05/0.2582, allocations: 16 kB / 427.7 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001894/0.2601, allocations: 2.749 MB / 430.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.2601, allocations: 8 kB / 430.4 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.2616, allocations: 0.9161 MB / 431.4 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005033/0.2621, allocations: 259.4 kB / 431.6 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.2623, allocations: 16 kB / 431.6 MB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006229/0.2629, allocations: 35.97 kB / 431.7 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.2631, allocations: 55.61 kB / 431.7 MB, free: 4.438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.2631, allocations: 19.98 kB / 431.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001651/0.2648, allocations: 0.8461 MB / 432.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2648, allocations: 0 / 432.6 MB, free: 3.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001406/0.2662, allocations: 312 kB / 432.9 MB, free: 3.266 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.0002645/0.2665, allocations: 127.1 kB / 433 MB, free: 3.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001809/0.2683, allocations: 0.9214 MB / 433.9 MB, free: 2.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2683, allocations: 7.938 kB / 433.9 MB, free: 2.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007023/0.269, allocations: 474.1 kB / 434.4 MB, free: 1.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.2707, allocations: 325.3 kB / 434.7 MB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005184/0.2759, allocations: 2.515 MB / 437.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001303/0.2773, allocations: 1.178 MB / 438.4 MB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007261/0.278, allocations: 171.3 kB / 438.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002201/0.2782, allocations: 83.44 kB / 438.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2782, allocations: 0 / 438.7 MB, free: 13.3 MB / 382.1 MB Notification: Performance of Templates: time 0.2546/0.5328, allocations: 15.22 MB / 453.9 MB, free: 69.05 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)