Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001414, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.009696/0.009696, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.958/1.958, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0006309/0.0006311, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3382, allocations: 47.59 MB / 327 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008704/0.3469, allocations: 7.663 MB / 334.7 MB, free: 11.31 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005305/0.3523, allocations: 2.669 MB / 337.4 MB, free: 9.004 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006674/0.353, allocations: 23.94 kB / 337.4 MB, free: 8.98 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001415/0.3544, allocations: 498 kB / 337.9 MB, free: 8.492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001111/0.3555, allocations: 417.1 kB / 338.3 MB, free: 8.082 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.356, allocations: 227.8 kB / 338.5 MB, free: 7.859 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.3575, allocations: 1.416 MB / 339.9 MB, free: 6.438 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008212/0.3584, allocations: 0.5046 MB / 340.4 MB, free: 5.91 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007467/0.3591, allocations: 477.6 kB / 340.9 MB, free: 5.441 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006128/0.3597, allocations: 0.5324 MB / 341.4 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.3599, allocations: 64 kB / 341.5 MB, free: 4.844 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.3601, allocations: 108 kB / 341.6 MB, free: 4.738 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.3603, allocations: 203 kB / 341.8 MB, free: 4.539 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005775/0.3609, allocations: 0.6156 MB / 342.4 MB, free: 3.914 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001619/0.3625, allocations: 1.634 MB / 344.1 MB, free: 2.273 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.3626, allocations: 0 / 344.1 MB, free: 2.273 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3626, allocations: 4 kB / 344.1 MB, free: 2.27 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.3626, allocations: 4 kB / 344.1 MB, free: 2.266 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002279/0.3649, allocations: 1.277 MB / 345.3 MB, free: 0.9336 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3649, allocations: 11.97 kB / 345.3 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006541/0.3656, allocations: 191.3 kB / 345.5 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.3668, allocations: 0.7465 MB / 346.3 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.589e-05/0.3668, allocations: 74 kB / 346.4 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.367, allocations: 103.9 kB / 346.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.3687, allocations: 0.9503 MB / 347.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.3688, allocations: 3.938 kB / 347.4 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.271e-05/0.3689, allocations: 40 kB / 347.4 MB, free: 14.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.3689, allocations: 28 kB / 347.5 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.3702, allocations: 0.6637 MB / 348.1 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005338/0.3755, allocations: 3.988 MB / 352.1 MB, free: 9.848 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007868/0.3763, allocations: 447.9 kB / 352.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006153/0.377, allocations: 272.7 kB / 352.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.377, allocations: 7.984 kB / 352.8 MB, free: 9.105 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.3771, allocations: 42.56 kB / 352.9 MB, free: 9.055 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.585e-06/0.3771, allocations: 3.938 kB / 352.9 MB, free: 9.051 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003449/0.3805, allocations: 1.583 MB / 354.5 MB, free: 7.375 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.3807, allocations: 85.11 kB / 354.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.382, allocations: 0.8333 MB / 355.4 MB, free: 6.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.3821, allocations: 33.7 kB / 355.4 MB, free: 6.391 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005378/0.3826, allocations: 0.5681 MB / 356 MB, free: 5.812 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.3828, allocations: 161.7 kB / 356.1 MB, free: 5.652 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.652e-05/0.3829, allocations: 61.67 kB / 356.2 MB, free: 5.586 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.3831, allocations: 334 kB / 356.5 MB, free: 5.254 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004029/0.3835, allocations: 185.9 kB / 356.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007026/0.3843, allocations: 471.6 kB / 357.2 MB, free: 4.477 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.3854, allocations: 0.6991 MB / 357.9 MB, free: 3.645 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3855, allocations: 4 kB / 357.9 MB, free: 3.641 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001514/0.387, allocations: 0.7983 MB / 358.7 MB, free: 2.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.387, allocations: 8 kB / 358.7 MB, free: 2.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.387, allocations: 8 kB / 358.7 MB, free: 2.812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.3873, allocations: 85.92 kB / 358.8 MB, free: 2.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/0.3879, allocations: 163.7 kB / 358.9 MB, free: 2.562 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00285/0.3907, allocations: 2.88 MB / 361.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007759/0.3915, allocations: 47.95 kB / 361.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.927e-05/0.3916, allocations: 32 kB / 361.9 MB, free: 15.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006145/0.3922, allocations: 261.5 kB / 362.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.3924, allocations: 86.97 kB / 362.2 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.3935, allocations: 0.5146 MB / 362.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.3935, allocations: 8 kB / 362.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.3935, allocations: 0 / 362.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3935, allocations: 3.984 kB / 362.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00236/0.3959, allocations: 1.493 MB / 364.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3959, allocations: 4.062 kB / 364.3 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003231/0.3962, allocations: 83.89 kB / 364.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001993/0.3965, allocations: 73.84 kB / 364.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.162e-05/0.3965, allocations: 15.98 kB / 364.4 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002454/0.399, allocations: 2.853 MB / 367.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.399, allocations: 3.938 kB / 367.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.4004, allocations: 0.8128 MB / 368.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.4007, allocations: 204 kB / 368.3 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.778e-05/0.4008, allocations: 20.06 kB / 368.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.4012, allocations: 35.97 kB / 368.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.4014, allocations: 36.09 kB / 368.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.4014, allocations: 12 kB / 368.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000804/0.4022, allocations: 0.5771 MB / 369 MB, free: 7.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4022, allocations: 0 / 369 MB, free: 7.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008672/0.4031, allocations: 204 kB / 369.2 MB, free: 7.609 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002352/0.4033, allocations: 127.1 kB / 369.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.4046, allocations: 0.7135 MB / 370 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4046, allocations: 0 / 370 MB, free: 6.734 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006743/0.4053, allocations: 465.6 kB / 370.5 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.4066, allocations: 215.1 kB / 370.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.4098, allocations: 2.247 MB / 372.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006379/0.4105, allocations: 1.009 MB / 373.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004198/0.4109, allocations: 111.3 kB / 374 MB, free: 2.602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001317/0.411, allocations: 55.44 kB / 374.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.411, allocations: 0 / 374.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of Templates: time 0.02076/0.4318, allocations: 10.1 MB / 384.2 MB, free: 8.434 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)