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.001572/0.001572, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002023/0.002024, allocations: 193.2 kB / 16.67 MB, free: 6.57 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.864/1.864, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.00177/0.00177, allocations: 50.41 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1618/0.1636, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01553/0.1792, allocations: 11.69 MB / 384.9 MB, free: 5.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009683/0.1891, allocations: 3.219 MB / 388.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004007/0.1933, allocations: 31.94 kB / 388.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003336/0.1966, allocations: 0.6517 MB / 388.8 MB, free: 1.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004649/0.2013, allocations: 0.6704 MB / 389.4 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.203, allocations: 399.5 kB / 389.8 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005161/0.2082, allocations: 2.25 MB / 392.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001893/0.2101, allocations: 0.9965 MB / 393.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.2122, allocations: 0.8288 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.2136, allocations: 0.9139 MB / 394.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000278/0.2138, allocations: 220 kB / 395 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005789/0.2144, allocations: 252 kB / 395.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000385/0.2148, allocations: 426.5 kB / 395.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001171/0.216, allocations: 1.019 MB / 396.7 MB, free: 9.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003856/0.2199, allocations: 2.693 MB / 399.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.2199, allocations: 4 kB / 399.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.2199, allocations: 0 / 399.4 MB, free: 6.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.542e-05/0.22, allocations: 0 / 399.4 MB, free: 6.922 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.00469/0.2247, allocations: 2.116 MB / 401.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.804e-05/0.2248, allocations: 16.03 kB / 401.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009331/0.2257, allocations: 263.6 kB / 401.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002061/0.2278, allocations: 1.052 MB / 402.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.2279, allocations: 115.5 kB / 403 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000254/0.2282, allocations: 159.9 kB / 403.1 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002915/0.2311, allocations: 1.491 MB / 404.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.667e-05/0.2312, allocations: 7.953 kB / 404.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001244/0.2313, allocations: 60 kB / 404.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.247e-05/0.2314, allocations: 40 kB / 404.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001989/0.2334, allocations: 0.9785 MB / 405.7 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009897/0.2433, allocations: 6.537 MB / 412.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009659/0.2443, allocations: 400.2 kB / 412.6 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004883/0.2448, allocations: 225.9 kB / 412.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.443e-05/0.2449, allocations: 8.438 kB / 412.8 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005911/0.2455, allocations: 268.8 kB / 413.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.286e-06/0.2455, allocations: 0 / 413.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.004153/0.2496, allocations: 1.788 MB / 414.9 MB, free: 6.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.2498, allocations: 162.8 kB / 415.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/0.252, allocations: 1.281 MB / 416.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.2521, allocations: 33.7 kB / 416.4 MB, free: 5.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008017/0.2529, allocations: 0.9011 MB / 417.3 MB, free: 4.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.253, allocations: 214.2 kB / 417.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002996/0.2534, allocations: 218.8 kB / 417.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2535, allocations: 357.9 kB / 418 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005034/0.254, allocations: 226.5 kB / 418.3 MB, free: 3.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.2553, allocations: 0.8034 MB / 419.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001577/0.2569, allocations: 1.122 MB / 420.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.2569, allocations: 8 kB / 420.2 MB, free: 0.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002123/0.259, allocations: 1.177 MB / 421.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.291e-05/0.2591, allocations: 38.39 kB / 421.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.571e-05/0.2591, allocations: 20 kB / 421.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002743/0.2594, allocations: 77.62 kB / 421.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007785/0.2602, allocations: 259.6 kB / 421.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/0.2624, allocations: 2.777 MB / 424.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.2637, allocations: 68.03 kB / 424.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.247e-05/0.2638, allocations: 60 kB / 424.7 MB, free: 12.05 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.0007211/0.2645, allocations: 361.3 kB / 425 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001829/0.2647, allocations: 139.1 kB / 425.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.2658, allocations: 0.5528 MB / 425.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.2658, allocations: 7.828 kB / 425.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.2658, allocations: 0 / 425.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.2658, allocations: 4 kB / 425.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.2688, allocations: 1.87 MB / 427.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.2688, allocations: 7.984 kB / 427.6 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004325/0.2693, allocations: 103.8 kB / 427.7 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.2694, allocations: 45.69 kB / 427.7 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.2695, allocations: 12.41 kB / 427.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001949/0.2714, allocations: 2.757 MB / 430.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.2714, allocations: 4 kB / 430.5 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001547/0.273, allocations: 0.9285 MB / 431.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000476/0.2735, allocations: 260.2 kB / 431.7 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.2736, allocations: 19.98 kB / 431.7 MB, free: 4.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/0.2742, allocations: 31.98 kB / 431.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.2744, allocations: 59.59 kB / 431.8 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.842e-05/0.2744, allocations: 20 kB / 431.8 MB, free: 4.367 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00144/0.2759, allocations: 0.8422 MB / 432.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2759, allocations: 4 kB / 432.7 MB, free: 3.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001398/0.2773, allocations: 311.9 kB / 433 MB, free: 3.215 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.0002778/0.2776, allocations: 123.1 kB / 433.1 MB, free: 3.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.2793, allocations: 0.9256 MB / 434 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.2793, allocations: 0 / 434 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007212/0.28, allocations: 474.1 kB / 434.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.2815, allocations: 328.8 kB / 434.8 MB, free: 1.316 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004764/0.2863, allocations: 2.571 MB / 437.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008811/0.2872, allocations: 1.178 MB / 438.5 MB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006509/0.2878, allocations: 167.3 kB / 438.7 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.288, allocations: 83.44 kB / 438.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.288, allocations: 0 / 438.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of Templates: time 0.3429/0.631, allocations: 15.23 MB / 454 MB, free: 68.98 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)