Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.iMotFilter.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w|preFilter.y|slewRateLimiter.y|speedController.integrator.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009567/0.0009567, allocations: 178 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000877/0.0008772, allocations: 93.05 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.000333, allocations: 15.98 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2938, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01379/0.3077, allocations: 12.81 MB / 387.4 MB, free: 35.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.3193, allocations: 5.038 MB / 392.4 MB, free: 30.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004314/0.3237, allocations: 59.75 kB / 392.5 MB, free: 30.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.3265, allocations: 0.7418 MB / 393.2 MB, free: 30.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002566/0.3291, allocations: 473.7 kB / 393.7 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001143/0.3302, allocations: 375.5 kB / 394 MB, free: 29.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002471/0.3327, allocations: 2.129 MB / 396.2 MB, free: 27.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.3339, allocations: 0.8223 MB / 397 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007802/0.3346, allocations: 0.6375 MB / 397.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005913/0.3352, allocations: 0.7422 MB / 398.4 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001484/0.3354, allocations: 100 kB / 398.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003616/0.3358, allocations: 140 kB / 398.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.336, allocations: 306.5 kB / 398.9 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002368/0.3362, allocations: 384.7 kB / 399.3 MB, free: 24.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00143/0.3376, allocations: 2.36 MB / 401.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3377, allocations: 0 / 401.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3377, allocations: 0 / 401.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.3377, allocations: 4 kB / 401.6 MB, free: 21.66 MB / 298.7 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.00311/0.3408, allocations: 1.947 MB / 403.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.12e-05/0.3409, allocations: 8.031 kB / 403.6 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006987/0.3416, allocations: 277.3 kB / 403.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001523/0.3431, allocations: 1.091 MB / 405 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.759e-05/0.3432, allocations: 127.3 kB / 405.1 MB, free: 18.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.3434, allocations: 167.9 kB / 405.2 MB, free: 17.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002507/0.3459, allocations: 1.602 MB / 406.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/0.346, allocations: 0 / 406.8 MB, free: 16.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001188/0.3461, allocations: 71.98 kB / 406.9 MB, free: 16.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.67e-05/0.3461, allocations: 47.94 kB / 407 MB, free: 16.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.348, allocations: 1.109 MB / 408.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00696/0.355, allocations: 6.705 MB / 414.8 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.3565, allocations: 0.9965 MB / 415.8 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004984/0.3571, allocations: 334.3 kB / 416.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.3571, allocations: 12.53 kB / 416.1 MB, free: 6.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.3571, allocations: 39.12 kB / 416.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.206e-06/0.3572, allocations: 4 kB / 416.1 MB, free: 6.582 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.003547/0.3607, allocations: 2.139 MB / 418.3 MB, free: 4.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.3608, allocations: 81.67 kB / 418.4 MB, free: 4.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.3622, allocations: 1.262 MB / 419.6 MB, free: 3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.075e-05/0.3622, allocations: 41.7 kB / 419.7 MB, free: 2.953 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004484/0.3627, allocations: 0.8881 MB / 420.6 MB, free: 2.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.3628, allocations: 244.5 kB / 420.8 MB, free: 1.812 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.3628, allocations: 20 kB / 420.8 MB, free: 1.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.184e-05/0.3629, allocations: 353.9 kB / 421.2 MB, free: 1.441 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005327/0.3635, allocations: 310.5 kB / 421.5 MB, free: 1.141 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007176/0.3642, allocations: 0.7275 MB / 422.2 MB, free: 224 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007411/0.365, allocations: 415 kB / 422.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.365, allocations: 4 kB / 422.6 MB, free: 15.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002052/0.367, allocations: 1.188 MB / 423.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003901/0.3674, allocations: 0.4966 MB / 424.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/0.3675, allocations: 12 kB / 424.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001722/0.3676, allocations: 44.84 kB / 424.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008697/0.3685, allocations: 271.6 kB / 424.6 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.3695, allocations: 1.295 MB / 425.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008044/0.3704, allocations: 80.02 kB / 426 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.575e-05/0.3704, allocations: 48 kB / 426 MB, free: 12.05 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.953e-06/0.3704, allocations: 4 kB / 426 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001501/0.372, allocations: 0.9495 MB / 427 MB, free: 11.09 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.372, allocations: 15.95 kB / 427 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.629e-05/0.3721, allocations: 41.34 kB / 427 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.3729, allocations: 259.6 kB / 427.3 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009323/0.3738, allocations: 1.292 MB / 428.6 MB, free: 9.355 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006902/0.3745, allocations: 51.98 kB / 428.6 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.237e-05/0.3746, allocations: 48 kB / 428.7 MB, free: 9.258 MB / 314.7 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.0008399/0.3754, allocations: 437.5 kB / 429.1 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/0.3756, allocations: 146.2 kB / 429.3 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.3771, allocations: 0.7394 MB / 430 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3771, allocations: 4 kB / 430 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3771, allocations: 0 / 430 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.3771, allocations: 3.984 kB / 430 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/0.3805, allocations: 2.182 MB / 432.2 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3805, allocations: 0 / 432.2 MB, free: 5.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006191/0.3811, allocations: 144 kB / 432.3 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.292e-05/0.3812, allocations: 28.84 kB / 432.3 MB, free: 5.469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.984e-05/0.3813, allocations: 16 kB / 432.4 MB, free: 5.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008937/0.3822, allocations: 1.28 MB / 433.6 MB, free: 4.039 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3822, allocations: 4 kB / 433.6 MB, free: 4.035 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.3841, allocations: 1.163 MB / 434.8 MB, free: 2.832 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004017/0.3845, allocations: 271.3 kB / 435.1 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001228/0.3846, allocations: 15.98 kB / 435.1 MB, free: 2.531 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005929/0.3852, allocations: 59.97 kB / 435.1 MB, free: 2.473 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.3853, allocations: 52.39 kB / 435.2 MB, free: 2.422 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.3854, allocations: 27.92 kB / 435.2 MB, free: 2.395 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001279/0.3867, allocations: 0.8385 MB / 436.1 MB, free: 1.555 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3867, allocations: 0 / 436.1 MB, free: 1.555 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001619/0.3883, allocations: 0.504 MB / 436.6 MB, free: 1.051 MB / 314.7 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.0003036/0.3886, allocations: 135.2 kB / 436.7 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.3912, allocations: 1.479 MB / 438.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3912, allocations: 0 / 438.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006873/0.3919, allocations: 430.5 kB / 438.6 MB, free: 14.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.3934, allocations: 318.2 kB / 438.9 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005162/0.3985, allocations: 3.523 MB / 442.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009137/0.3995, allocations: 1.233 MB / 443.7 MB, free: 9.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.3997, allocations: 95.42 kB / 443.8 MB, free: 9.727 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3997, allocations: 0 / 443.8 MB, free: 9.727 MB / 330.7 MB Notification: Performance of Templates: time 0.03602/0.4358, allocations: 25.55 MB / 469.3 MB, free: 160 kB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches