Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 196.7 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 226.5 MB / 244.7 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009731/0.0009733, allocations: 95.5 kB / 296.8 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000212/0.000212, allocations: 8 kB / 356.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1932, allocations: 51.3 MB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01404/0.2073, allocations: 12.91 MB / 421 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00886/0.2162, allocations: 5.074 MB / 426 MB, free: 9.715 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.2181, allocations: 63.75 kB / 426.1 MB, free: 9.652 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.2202, allocations: 0.7379 MB / 426.8 MB, free: 8.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001381/0.2216, allocations: 464.5 kB / 427.3 MB, free: 8.453 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009889/0.2226, allocations: 379.5 kB / 427.7 MB, free: 8.082 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002279/0.2249, allocations: 2.181 MB / 429.8 MB, free: 5.891 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/0.2265, allocations: 1.05 MB / 430.9 MB, free: 4.789 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008621/0.2274, allocations: 0.6337 MB / 431.5 MB, free: 4.152 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007921/0.2282, allocations: 0.7461 MB / 432.3 MB, free: 3.402 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001905/0.2284, allocations: 96 kB / 432.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003914/0.2288, allocations: 132 kB / 432.5 MB, free: 3.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000234/0.2291, allocations: 310.5 kB / 432.8 MB, free: 2.875 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007658/0.2299, allocations: 0.8604 MB / 433.7 MB, free: 2.004 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002186/0.2321, allocations: 2.357 MB / 436 MB, free: 15.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2321, allocations: 0 / 436 MB, free: 15.64 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2321, allocations: 0 / 436 MB, free: 15.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.775e-05/0.2321, allocations: 0 / 436 MB, free: 15.64 MB / 314.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.004364/0.2365, allocations: 1.919 MB / 437.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.2365, allocations: 8.031 kB / 437.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/0.2376, allocations: 274.3 kB / 438.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002398/0.24, allocations: 1.127 MB / 439.3 MB, free: 12.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.2401, allocations: 127.7 kB / 439.5 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/0.2404, allocations: 172.3 kB / 439.6 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003925/0.2444, allocations: 1.601 MB / 441.2 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-05/0.2445, allocations: 7.844 kB / 441.2 MB, free: 10.24 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001859/0.2446, allocations: 68 kB / 441.3 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-05/0.2447, allocations: 40 kB / 441.3 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003206/0.2479, allocations: 1.113 MB / 442.5 MB, free: 9.016 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01159/0.2595, allocations: 6.72 MB / 449.2 MB, free: 1.992 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002444/0.262, allocations: 0.9984 MB / 450.2 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008593/0.2629, allocations: 322.4 kB / 450.5 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-05/0.263, allocations: 9.25 kB / 450.5 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.263, allocations: 47.11 kB / 450.5 MB, free: 0.543 MB / 314.7 MB Notification: Performance of pre-optimization done (n=61): time 3.527e-06/0.263, allocations: 0 / 450.5 MB, free: 0.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=64): time 0.005382/0.2684, allocations: 2.132 MB / 452.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.752e-05/0.2685, allocations: 89.61 kB / 452.8 MB, free: 14.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002416/0.2709, allocations: 1.257 MB / 454 MB, free: 12.95 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.637e-05/0.271, allocations: 33.7 kB / 454.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008074/0.2718, allocations: 0.8919 MB / 454.9 MB, free: 12.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.272, allocations: 236.6 kB / 455.2 MB, free: 11.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.511e-05/0.2721, allocations: 24 kB / 455.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2723, allocations: 345.9 kB / 455.5 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009313/0.2732, allocations: 310.5 kB / 455.8 MB, free: 11.1 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.2745, allocations: 0.7236 MB / 456.6 MB, free: 10.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002229/0.2767, allocations: 1.074 MB / 457.6 MB, free: 8.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.916e-06/0.2768, allocations: 4 kB / 457.6 MB, free: 8.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003018/0.2798, allocations: 1.192 MB / 458.8 MB, free: 7.723 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003642/0.2802, allocations: 0.4888 MB / 459.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.306e-05/0.2802, allocations: 12 kB / 459.3 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001894/0.2804, allocations: 36.84 kB / 459.4 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001343/0.2818, allocations: 279.6 kB / 459.6 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001189/0.283, allocations: 1.295 MB / 460.9 MB, free: 5.297 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.2842, allocations: 72 kB / 461 MB, free: 5.227 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.853e-05/0.2843, allocations: 55.98 kB / 461.1 MB, free: 5.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.2843, allocations: 4 kB / 461.1 MB, free: 5.168 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002256/0.2866, allocations: 0.9494 MB / 462 MB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.2866, allocations: 12 kB / 462 MB, free: 4.203 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001217/0.2867, allocations: 49.22 kB / 462.1 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.288, allocations: 255.6 kB / 462.3 MB, free: 3.902 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.2891, allocations: 1.296 MB / 463.6 MB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.2902, allocations: 51.89 kB / 463.7 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.206e-05/0.2903, allocations: 52 kB / 463.7 MB, free: 2.371 MB / 330.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.0009246/0.2912, allocations: 432.7 kB / 464.1 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/0.2915, allocations: 134.5 kB / 464.3 MB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/0.2935, allocations: 0.7283 MB / 465 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.2936, allocations: 8 kB / 465 MB, free: 1.059 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.2936, allocations: 3.938 kB / 465 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.2936, allocations: 3.984 kB / 465 MB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004777/0.2984, allocations: 2.182 MB / 467.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.2984, allocations: 4 kB / 467.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009477/0.2994, allocations: 148 kB / 467.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.2995, allocations: 24.84 kB / 467.4 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.328e-05/0.2996, allocations: 20 kB / 467.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.3007, allocations: 1.28 MB / 468.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3007, allocations: 3.984 kB / 468.7 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.3034, allocations: 1.163 MB / 469.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005478/0.304, allocations: 271.3 kB / 470.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.3042, allocations: 16 kB / 470.1 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008907/0.3051, allocations: 63.95 kB / 470.2 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.3053, allocations: 48.44 kB / 470.2 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-05/0.3053, allocations: 16 kB / 470.2 MB, free: 11.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001748/0.3071, allocations: 0.8383 MB / 471.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3071, allocations: 0 / 471.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002347/0.3095, allocations: 0.4999 MB / 471.6 MB, free: 10.19 MB / 346.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.0002782/0.3097, allocations: 143.1 kB / 471.7 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003581/0.3133, allocations: 1.475 MB / 473.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.3134, allocations: 0 / 473.2 MB, free: 8.547 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3144, allocations: 446.4 kB / 473.6 MB, free: 8.094 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/0.3169, allocations: 304.4 kB / 473.9 MB, free: 7.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006786/0.3237, allocations: 3.506 MB / 477.4 MB, free: 4.246 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.3249, allocations: 1.241 MB / 478.7 MB, free: 2.969 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004212/0.3253, allocations: 87.44 kB / 478.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of SimCode: time 6.92e-07/0.3253, allocations: 0 / 478.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of Templates: time 0.04413/0.3695, allocations: 25.42 MB / 0.4924 GB, free: 9.516 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches