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.001198/0.001198, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001299/0.001299, allocations: 192.8 kB / 16.25 MB, free: 6.621 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.848/1.848, allocations: 205.1 MB / 222.1 MB, free: 4.711 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.001325/0.001325, allocations: 52.31 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3972, allocations: 46.63 MB / 324.9 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.0161/0.4134, allocations: 11.6 MB / 336.5 MB, free: 8.473 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008869/0.4223, allocations: 3.177 MB / 339.6 MB, free: 5.285 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003969/0.4264, allocations: 39.88 kB / 339.7 MB, free: 5.246 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003499/0.4299, allocations: 0.5633 MB / 340.2 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004736/0.4347, allocations: 0.5779 MB / 340.8 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002218/0.437, allocations: 351.6 kB / 341.2 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006201/0.4432, allocations: 2.234 MB / 343.4 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002546/0.4458, allocations: 1.001 MB / 344.4 MB, free: 476 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002504/0.4483, allocations: 0.8405 MB / 345.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002703/0.451, allocations: 0.91 MB / 346.1 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009234/0.452, allocations: 216 kB / 346.4 MB, free: 14.49 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/0.4535, allocations: 259.9 kB / 346.6 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005682/0.4541, allocations: 430.4 kB / 347 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001602/0.4557, allocations: 1.023 MB / 348 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0032/0.4589, allocations: 2.64 MB / 350.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.055e-05/0.4589, allocations: 0 / 350.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.459, allocations: 0 / 350.7 MB, free: 10.14 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.168e-05/0.459, allocations: 0 / 350.7 MB, free: 10.14 MB / 286.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.0045/0.4635, allocations: 2.06 MB / 352.7 MB, free: 8.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.037e-05/0.4636, allocations: 12.03 kB / 352.8 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009208/0.4645, allocations: 250.5 kB / 353 MB, free: 7.762 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.4664, allocations: 1.028 MB / 354 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.4665, allocations: 119.5 kB / 354.1 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002373/0.4668, allocations: 167.8 kB / 354.3 MB, free: 6.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002837/0.4697, allocations: 1.476 MB / 355.8 MB, free: 4.859 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.281e-05/0.4697, allocations: 19.83 kB / 355.8 MB, free: 4.84 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.4699, allocations: 60 kB / 355.9 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/0.4699, allocations: 40 kB / 355.9 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001928/0.4719, allocations: 0.9708 MB / 356.9 MB, free: 3.766 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009072/0.481, allocations: 6.578 MB / 363.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008662/0.4819, allocations: 388.2 kB / 363.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004615/0.4824, allocations: 226.1 kB / 364.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.261e-05/0.4824, allocations: 8.422 kB / 364.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007748/0.4832, allocations: 276.7 kB / 364.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.384e-06/0.4832, allocations: 0 / 364.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.004224/0.4875, allocations: 1.754 MB / 366.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.4876, allocations: 170.8 kB / 366.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.4896, allocations: 1.277 MB / 367.5 MB, free: 8.574 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.655e-05/0.4896, allocations: 37.7 kB / 367.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008856/0.4905, allocations: 0.8712 MB / 368.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002007/0.4908, allocations: 209.1 kB / 368.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003269/0.4911, allocations: 214.7 kB / 368.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.4913, allocations: 353.9 kB / 369.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/0.4918, allocations: 234.5 kB / 369.4 MB, free: 6.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.4928, allocations: 0.8034 MB / 370.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/0.4942, allocations: 1.118 MB / 371.3 MB, free: 4.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/0.4942, allocations: 8 kB / 371.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002007/0.4963, allocations: 1.169 MB / 372.5 MB, free: 2.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.4963, allocations: 49.86 kB / 372.6 MB, free: 2.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/0.4964, allocations: 16 kB / 372.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003046/0.4967, allocations: 69.62 kB / 372.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008438/0.4975, allocations: 263.6 kB / 372.9 MB, free: 2.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003038/0.5006, allocations: 2.776 MB / 375.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.5018, allocations: 63.89 kB / 375.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.7e-05/0.5019, allocations: 60 kB / 375.8 MB, free: 15.39 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.0007987/0.5027, allocations: 365.3 kB / 376.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.5029, allocations: 130.4 kB / 376.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.504, allocations: 0.545 MB / 376.8 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.504, allocations: 11.94 kB / 376.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.504, allocations: 0 / 376.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.504, allocations: 4 kB / 376.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002908/0.507, allocations: 1.877 MB / 378.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.507, allocations: 4 kB / 378.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004249/0.5074, allocations: 103.8 kB / 378.8 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001637/0.5076, allocations: 49.69 kB / 378.9 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.5076, allocations: 16.22 kB / 378.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/0.5097, allocations: 2.745 MB / 381.6 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.5097, allocations: 4 kB / 381.7 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.5113, allocations: 0.9262 MB / 382.6 MB, free: 8.129 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.5118, allocations: 251.5 kB / 382.8 MB, free: 7.863 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001458/0.512, allocations: 27.92 kB / 382.9 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005292/0.5125, allocations: 23.98 kB / 382.9 MB, free: 7.812 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.5127, allocations: 59.81 kB / 382.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.5127, allocations: 19.98 kB / 383 MB, free: 7.734 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001277/0.514, allocations: 0.8461 MB / 383.8 MB, free: 6.887 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.514, allocations: 0 / 383.8 MB, free: 6.887 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00141/0.5154, allocations: 308 kB / 384.1 MB, free: 6.586 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.0003212/0.5158, allocations: 131 kB / 384.2 MB, free: 6.449 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.5176, allocations: 0.9412 MB / 385.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.5176, allocations: 4.312 kB / 385.2 MB, free: 5.469 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006932/0.5183, allocations: 480.7 kB / 385.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.5199, allocations: 337.8 kB / 386 MB, free: 4.641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005879/0.5258, allocations: 3.137 MB / 389.1 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00119/0.527, allocations: 1.178 MB / 390.3 MB, free: 212 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008649/0.5279, allocations: 171.3 kB / 390.5 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002155/0.5281, allocations: 83.48 kB / 390.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of SimCode: time 2.094e-06/0.5282, allocations: 0 / 390.5 MB, free: 15.95 MB / 334.1 MB Notification: Performance of Templates: time 0.03568/0.5638, allocations: 14.89 MB / 405.4 MB, free: 1.043 MB / 334.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)