Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001292, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001443/0.001443, allocations: 180.4 kB / 17.2 MB, free: 5.914 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.865/1.865, allocations: 205.4 MB / 223.4 MB, free: 5.293 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.0005129/0.000513, allocations: 8 kB / 280.1 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3045/0.305, allocations: 47.58 MB / 327.7 MB, free: 1.449 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01366/0.3187, allocations: 11.84 MB / 339.6 MB, free: 7.625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.3302, allocations: 5.194 MB / 344.7 MB, free: 2.422 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003528/0.3337, allocations: 59.75 kB / 344.8 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003337/0.3371, allocations: 0.8432 MB / 345.6 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0037/0.3408, allocations: 0.8879 MB / 346.5 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002032/0.3429, allocations: 0.5734 MB / 347.1 MB, free: 52 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.3466, allocations: 1.602 MB / 348.7 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.3479, allocations: 0.8329 MB / 349.5 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008587/0.3488, allocations: 0.6223 MB / 350.2 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008285/0.3496, allocations: 0.7307 MB / 350.9 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001539/0.3498, allocations: 96 kB / 351 MB, free: 12.13 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003479/0.3501, allocations: 132 kB / 351.1 MB, free: 12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002298/0.3504, allocations: 302.7 kB / 351.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.3507, allocations: 388.6 kB / 351.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002156/0.3529, allocations: 2.337 MB / 354.1 MB, free: 8.973 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3529, allocations: 4 kB / 354.1 MB, free: 8.969 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3529, allocations: 0 / 354.1 MB, free: 8.969 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.867e-05/0.353, allocations: 0 / 354.1 MB, free: 8.969 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003596/0.3566, allocations: 1.943 MB / 356.1 MB, free: 6.969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3566, allocations: 12.03 kB / 356.1 MB, free: 6.957 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000747/0.3574, allocations: 277.3 kB / 356.4 MB, free: 6.684 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/0.3591, allocations: 1.096 MB / 357.5 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.4e-05/0.3593, allocations: 123.3 kB / 357.6 MB, free: 5.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.3595, allocations: 171.9 kB / 357.7 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002683/0.3622, allocations: 1.59 MB / 359.3 MB, free: 3.59 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.3622, allocations: 3.906 kB / 359.3 MB, free: 3.586 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.3623, allocations: 68 kB / 359.4 MB, free: 3.52 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.081e-05/0.3624, allocations: 40 kB / 359.4 MB, free: 3.48 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002088/0.3645, allocations: 1.109 MB / 360.6 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008683/0.3732, allocations: 6.69 MB / 367.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.3751, allocations: 1.003 MB / 368.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.069e-05/0.3752, allocations: 8.562 kB / 368.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.3752, allocations: 43.11 kB / 368.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 3.166e-06/0.3753, allocations: 0 / 368.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004822/0.3801, allocations: 2.132 MB / 370.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.3802, allocations: 89.67 kB / 370.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001758/0.3819, allocations: 1.25 MB / 371.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.531e-05/0.382, allocations: 37.7 kB / 371.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006251/0.3826, allocations: 0.8881 MB / 372.7 MB, free: 5.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.3828, allocations: 240.6 kB / 372.9 MB, free: 5.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/0.3829, allocations: 27.94 kB / 373 MB, free: 5.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.383, allocations: 345.9 kB / 373.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006012/0.3836, allocations: 310.5 kB / 373.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008608/0.3845, allocations: 0.7159 MB / 374.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007496/0.3853, allocations: 419 kB / 374.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.3853, allocations: 8 kB / 374.7 MB, free: 3.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002065/0.3873, allocations: 1.184 MB / 375.9 MB, free: 2.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002217/0.3896, allocations: 5.372 MB / 381.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.402e-05/0.3896, allocations: 16 kB / 381.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.3898, allocations: 44.84 kB / 381.3 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000893/0.3907, allocations: 271.6 kB / 381.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.3917, allocations: 1.311 MB / 382.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008429/0.3926, allocations: 76.16 kB / 383 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.3927, allocations: 48 kB / 383 MB, free: 10.67 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/0.3927, allocations: 4 kB / 383 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001556/0.3942, allocations: 0.95 MB / 384 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.3943, allocations: 15.98 kB / 384 MB, free: 9.699 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.998e-05/0.3944, allocations: 40.88 kB / 384 MB, free: 9.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007742/0.3952, allocations: 259.6 kB / 384.3 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008407/0.396, allocations: 1.299 MB / 385.6 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007426/0.3968, allocations: 47.98 kB / 385.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.793e-05/0.3968, allocations: 52 kB / 385.7 MB, free: 7.871 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008019/0.3977, allocations: 444.8 kB / 386.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.3978, allocations: 134.3 kB / 386.3 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.3992, allocations: 0.7277 MB / 387 MB, free: 6.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.3993, allocations: 8 kB / 387 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3993, allocations: 0 / 387 MB, free: 6.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.3993, allocations: 7.938 kB / 387 MB, free: 6.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.4027, allocations: 2.162 MB / 389.2 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.4027, allocations: 4.219 kB / 389.2 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000615/0.4033, allocations: 151.8 kB / 389.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.4034, allocations: 20.84 kB / 389.3 MB, free: 4.105 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.198e-05/0.4035, allocations: 16 kB / 389.4 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000854/0.4043, allocations: 1.284 MB / 390.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.4043, allocations: 8.203 kB / 390.6 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001993/0.4063, allocations: 1.249 MB / 391.9 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005093/0.4069, allocations: 271.3 kB / 392.2 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001331/0.407, allocations: 20 kB / 392.2 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005572/0.4076, allocations: 59.95 kB / 392.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.425e-05/0.4077, allocations: 44.44 kB / 392.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.4077, allocations: 24 kB / 392.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001208/0.4089, allocations: 0.8307 MB / 393.1 MB, free: 60 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4089, allocations: 3.938 kB / 393.1 MB, free: 56 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.001693/0.4106, allocations: 0.504 MB / 393.6 MB, free: 15.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * 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 (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002532/0.4109, allocations: 135 kB / 393.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002551/0.4135, allocations: 1.478 MB / 395.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4135, allocations: 2 kB / 395.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007036/0.4142, allocations: 434.1 kB / 395.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.4155, allocations: 300.9 kB / 396 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00555/0.4211, allocations: 3.47 MB / 399.4 MB, free: 9.656 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008923/0.422, allocations: 1.276 MB / 400.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008009/0.4228, allocations: 174.5 kB / 400.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.423, allocations: 87.42 kB / 401 MB, free: 8.086 MB / 334.1 MB Notification: Performance of SimCode: time 7.91e-07/0.423, allocations: 0 / 401 MB, free: 8.086 MB / 334.1 MB Notification: Performance of Templates: time 0.02513/0.4482, allocations: 13.57 MB / 414.5 MB, free: 10.5 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) Environment - environmentSimulation: