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.001342/0.001342, allocations: 175 kB / 16.72 MB, free: 5.082 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.388/1.388, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.000759/0.0007594, allocations: 82.38 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005247/0.0005248, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2313, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01155/0.2429, allocations: 12.82 MB / 387.9 MB, free: 35.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009276/0.2522, allocations: 5.029 MB / 392.9 MB, free: 30.83 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003017/0.2553, allocations: 59.75 kB / 393 MB, free: 30.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.2574, allocations: 0.7418 MB / 393.7 MB, free: 30.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.259, allocations: 476.4 kB / 394.2 MB, free: 29.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000895/0.2599, allocations: 367.5 kB / 394.6 MB, free: 29.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.2618, allocations: 2.191 MB / 396.7 MB, free: 27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001185/0.263, allocations: 1.055 MB / 397.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006817/0.2637, allocations: 0.6376 MB / 398.4 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005647/0.2642, allocations: 0.75 MB / 399.2 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001385/0.2644, allocations: 100 kB / 399.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002931/0.2647, allocations: 132 kB / 399.4 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.2649, allocations: 302.5 kB / 399.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005507/0.2654, allocations: 0.8643 MB / 400.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.2668, allocations: 2.368 MB / 402.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.2669, allocations: 0 / 402.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2669, allocations: 0 / 402.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.212e-05/0.2669, allocations: 0 / 402.9 MB, free: 20.73 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.002874/0.2698, allocations: 1.927 MB / 404.9 MB, free: 18.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.2698, allocations: 12.03 kB / 404.9 MB, free: 18.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006061/0.2704, allocations: 274.2 kB / 405.2 MB, free: 18.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.2719, allocations: 1.127 MB / 406.3 MB, free: 17.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.874e-05/0.272, allocations: 119.7 kB / 406.4 MB, free: 17.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.2721, allocations: 180.2 kB / 406.6 MB, free: 16.99 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.2744, allocations: 1.598 MB / 408.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.197e-05/0.2745, allocations: 11.98 kB / 408.2 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001129/0.2746, allocations: 68 kB / 408.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.2746, allocations: 40 kB / 408.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001849/0.2765, allocations: 1.109 MB / 409.4 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007073/0.2836, allocations: 6.728 MB / 416.1 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.2851, allocations: 0.9961 MB / 417.1 MB, free: 6.008 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004946/0.2856, allocations: 322.4 kB / 417.4 MB, free: 5.691 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.972e-05/0.2857, allocations: 8.562 kB / 417.4 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.2857, allocations: 43.12 kB / 417.5 MB, free: 5.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.356e-06/0.2857, allocations: 0 / 417.5 MB, free: 5.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.00365/0.2894, allocations: 2.132 MB / 419.6 MB, free: 3.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.2894, allocations: 89.61 kB / 419.7 MB, free: 3.324 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001505/0.2909, allocations: 1.262 MB / 421 MB, free: 2.047 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.059e-05/0.291, allocations: 37.7 kB / 421 MB, free: 2.004 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004265/0.2914, allocations: 0.8997 MB / 421.9 MB, free: 1.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.2916, allocations: 244.5 kB / 422.1 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.2916, allocations: 24 kB / 422.2 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.154e-05/0.2917, allocations: 341.9 kB / 422.5 MB, free: 500 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005303/0.2922, allocations: 314.5 kB / 422.8 MB, free: 184 kB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008733/0.2931, allocations: 0.7236 MB / 423.5 MB, free: 15.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.2947, allocations: 1.071 MB / 424.6 MB, free: 14.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.2947, allocations: 4 kB / 424.6 MB, free: 14 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002187/0.2969, allocations: 1.196 MB / 425.8 MB, free: 12.8 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003883/0.2973, allocations: 0.4925 MB / 426.3 MB, free: 12.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.2973, allocations: 16 kB / 426.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001982/0.2976, allocations: 40.84 kB / 426.3 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008819/0.2984, allocations: 275.5 kB / 426.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/0.2996, allocations: 1.288 MB / 427.9 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008264/0.3004, allocations: 72.03 kB / 428 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-05/0.3005, allocations: 56 kB / 428 MB, free: 10.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.3005, allocations: 1.094 kB / 428 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001524/0.3021, allocations: 0.9577 MB / 429 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3021, allocations: 12 kB / 429 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001003/0.3022, allocations: 40.84 kB / 429 MB, free: 9.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007488/0.303, allocations: 251.6 kB / 429.3 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009366/0.3039, allocations: 1.299 MB / 430.6 MB, free: 7.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007147/0.3046, allocations: 56.05 kB / 430.6 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/0.3047, allocations: 52 kB / 430.7 MB, free: 7.445 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.0007797/0.3055, allocations: 436.6 kB / 431.1 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001923/0.3057, allocations: 130.4 kB / 431.2 MB, free: 6.879 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/0.3071, allocations: 0.7354 MB / 432 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.3071, allocations: 8 kB / 432 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3071, allocations: 3.938 kB / 432 MB, free: 6.113 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.3072, allocations: 3.984 kB / 432 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003536/0.3107, allocations: 2.178 MB / 434.2 MB, free: 3.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.3107, allocations: 4 kB / 434.2 MB, free: 3.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006451/0.3114, allocations: 139.8 kB / 434.3 MB, free: 3.699 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000133/0.3115, allocations: 29 kB / 434.3 MB, free: 3.668 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.3116, allocations: 16 kB / 434.4 MB, free: 3.652 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001206/0.3128, allocations: 1.288 MB / 435.6 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3128, allocations: 0 / 435.6 MB, free: 2.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/0.3149, allocations: 1.167 MB / 436.8 MB, free: 1.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005059/0.3154, allocations: 271.3 kB / 437.1 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000133/0.3155, allocations: 20 kB / 437.1 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.3161, allocations: 59.95 kB / 437.2 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.3162, allocations: 48.44 kB / 437.2 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.3162, allocations: 19.94 kB / 437.2 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0013/0.3175, allocations: 0.8424 MB / 438.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3176, allocations: 0 / 438.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001647/0.3192, allocations: 0.5038 MB / 438.6 MB, free: 15.24 MB / 330.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.000249/0.3195, allocations: 127.2 kB / 438.7 MB, free: 15.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002591/0.3221, allocations: 1.476 MB / 440.2 MB, free: 13.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3221, allocations: 8.062 kB / 440.2 MB, free: 13.6 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007167/0.3228, allocations: 442 kB / 440.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/0.3246, allocations: 316.4 kB / 440.9 MB, free: 12.86 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006152/0.3308, allocations: 3.527 MB / 444.4 MB, free: 9.273 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001104/0.3319, allocations: 1.233 MB / 445.7 MB, free: 8.008 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.3323, allocations: 95.44 kB / 445.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of SimCode: time 9.31e-07/0.3323, allocations: 0 / 445.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of Templates: time 0.03679/0.3691, allocations: 25.52 MB / 471.3 MB, free: 14.37 MB / 362.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