Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.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_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 98.03 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.009229/0.009229, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004889/0.0004887, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3367, allocations: 47.59 MB / 327.1 MB, free: 1.367 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008856/0.3456, allocations: 7.518 MB / 334.6 MB, free: 11.39 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006647/0.3523, allocations: 2.609 MB / 337.2 MB, free: 9.195 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001339/0.3537, allocations: 23.94 kB / 337.2 MB, free: 9.172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001884/0.3556, allocations: 0.5019 MB / 337.7 MB, free: 8.668 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001748/0.3573, allocations: 401.1 kB / 338.1 MB, free: 8.273 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006313/0.358, allocations: 219.8 kB / 338.3 MB, free: 8.059 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001935/0.3599, allocations: 1.389 MB / 339.7 MB, free: 6.664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008169/0.3608, allocations: 0.4967 MB / 340.2 MB, free: 6.145 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008277/0.3616, allocations: 477.7 kB / 340.7 MB, free: 5.676 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006765/0.3623, allocations: 0.513 MB / 341.2 MB, free: 5.16 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001386/0.3624, allocations: 68 kB / 341.2 MB, free: 5.094 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003432/0.3628, allocations: 95.98 kB / 341.3 MB, free: 5 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.363, allocations: 199 kB / 341.5 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006633/0.3637, allocations: 0.604 MB / 342.1 MB, free: 4.191 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.3654, allocations: 1.611 MB / 343.7 MB, free: 2.574 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3654, allocations: 4 kB / 343.7 MB, free: 2.57 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3654, allocations: 0 / 343.7 MB, free: 2.57 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.873e-05/0.3654, allocations: 0 / 343.7 MB, free: 2.57 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002427/0.3679, allocations: 1.254 MB / 345 MB, free: 1.262 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3679, allocations: 12.03 kB / 345 MB, free: 1.25 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006739/0.3686, allocations: 187.4 kB / 345.2 MB, free: 1.066 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.3698, allocations: 0.7338 MB / 345.9 MB, free: 296 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.533e-05/0.3699, allocations: 77.94 kB / 346 MB, free: 216 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.37, allocations: 96 kB / 346.1 MB, free: 120 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001728/0.3718, allocations: 0.9386 MB / 347 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/0.3718, allocations: 11.89 kB / 347.1 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-05/0.3719, allocations: 40 kB / 347.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3719, allocations: 28 kB / 347.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.3733, allocations: 0.6441 MB / 347.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005685/0.379, allocations: 3.95 MB / 351.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007976/0.3799, allocations: 436.6 kB / 352.1 MB, free: 9.801 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005938/0.3805, allocations: 265.3 kB / 352.4 MB, free: 9.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.984e-05/0.3805, allocations: 4.328 kB / 352.4 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.3806, allocations: 42.89 kB / 352.4 MB, free: 9.484 MB / 286.1 MB Notification: Performance of pre-optimization done (n=40): time 2.294e-06/0.3806, allocations: 0 / 352.4 MB, free: 9.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=44): time 0.003171/0.3838, allocations: 1.427 MB / 353.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.3838, allocations: 81.11 kB / 353.9 MB, free: 7.883 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.3849, allocations: 0.8136 MB / 354.8 MB, free: 7.059 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.535e-05/0.385, allocations: 37.7 kB / 354.8 MB, free: 7.016 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004171/0.3854, allocations: 0.5525 MB / 355.4 MB, free: 6.453 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.3856, allocations: 161.7 kB / 355.5 MB, free: 6.293 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.258e-05/0.3857, allocations: 61.69 kB / 355.6 MB, free: 6.227 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000279/0.386, allocations: 342 kB / 355.9 MB, free: 5.887 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.3863, allocations: 169.9 kB / 356.1 MB, free: 5.719 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.3869, allocations: 464 kB / 356.5 MB, free: 5.133 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.3879, allocations: 0.6739 MB / 357.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3879, allocations: 0 / 357.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001358/0.3893, allocations: 0.7783 MB / 358 MB, free: 3.535 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.3893, allocations: 12 kB / 358 MB, free: 3.523 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.3894, allocations: 8 kB / 358 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002836/0.3896, allocations: 81.88 kB / 358.1 MB, free: 3.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.3902, allocations: 159.7 kB / 358.2 MB, free: 3.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.3935, allocations: 2.876 MB / 361.1 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008027/0.3943, allocations: 39.89 kB / 361.1 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/0.3944, allocations: 32 kB / 361.2 MB, free: 64 kB / 286.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 (84): * Single equations (assignments): 82 * 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.0006992/0.3951, allocations: 269.6 kB / 361.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001619/0.3953, allocations: 82.97 kB / 361.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.3964, allocations: 0.4956 MB / 362 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.044e-06/0.3964, allocations: 4 kB / 362 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3964, allocations: 0 / 362 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.3965, allocations: 7.922 kB / 362 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.399, allocations: 1.446 MB / 363.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.399, allocations: 4 kB / 363.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003015/0.3993, allocations: 71.91 kB / 363.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002001/0.3995, allocations: 73.83 kB / 363.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.3996, allocations: 12 kB / 363.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/0.4022, allocations: 2.86 MB / 366.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.4022, allocations: 3.938 kB / 366.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001694/0.4039, allocations: 0.773 MB / 367.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004891/0.4044, allocations: 196.1 kB / 367.5 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.33e-05/0.4045, allocations: 11.94 kB / 367.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/0.405, allocations: 39.97 kB / 367.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4051, allocations: 31.91 kB / 367.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.4051, allocations: 15.98 kB / 367.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008828/0.406, allocations: 0.5576 MB / 368.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.406, allocations: 0 / 368.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001008/0.407, allocations: 212 kB / 368.3 MB, free: 8.473 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 (38): * Single equations (assignments): 36 * 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.0003034/0.4073, allocations: 123.1 kB / 368.4 MB, free: 8.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001364/0.4087, allocations: 0.6942 MB / 369.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.4087, allocations: 3.984 kB / 369.1 MB, free: 7.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007336/0.4095, allocations: 446.6 kB / 369.6 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/0.4108, allocations: 207.4 kB / 369.8 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/0.4147, allocations: 2.217 MB / 372 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007651/0.4155, allocations: 1.009 MB / 373 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005363/0.416, allocations: 103.2 kB / 373.1 MB, free: 3.543 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001458/0.4162, allocations: 55.44 kB / 373.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of SimCode: time 1.513e-06/0.4162, allocations: 0 / 373.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of Templates: time 0.02497/0.4412, allocations: 9.953 MB / 383.1 MB, free: 9.527 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1)