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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002499/0.002499, allocations: 179.8 kB / 8.154 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.639/1.639, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.001253/0.001252, allocations: 94.91 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.457e-05/1.458e-05, allocations: 4 kB / 314.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2432, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1748/0.418, allocations: 115.3 MB / 477.2 MB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4184, allocations: 82.02 kB / 477.3 MB, free: 2.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3146/0.733, allocations: 41.83 MB / 0.5069 GB, free: 100 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001441/0.7332, allocations: 44.78 kB / 0.507 GB, free: 100 MB / 394.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.004239/0.7374, allocations: 1.728 MB / 0.5087 GB, free: 99.22 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.7375, allocations: 11.66 kB / 0.5087 GB, free: 99.22 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.7388, allocations: 274.4 kB / 0.5089 GB, free: 99.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003246/0.742, allocations: 1.18 MB / 0.5101 GB, free: 98.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.222e-05/0.7422, allocations: 53.59 kB / 0.5101 GB, free: 98.72 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/0.7425, allocations: 105.3 kB / 0.5102 GB, free: 98.72 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002759/0.7452, allocations: 0.882 MB / 0.5111 GB, free: 98.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003188/0.7484, allocations: 1.263 MB / 0.5123 GB, free: 98.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.046e-05/0.7485, allocations: 6.469 kB / 0.5123 GB, free: 98.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001628/0.7487, allocations: 0 / 0.5123 GB, free: 98.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.7488, allocations: 50.75 kB / 0.5124 GB, free: 98.51 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01224/0.761, allocations: 6.435 MB / 0.5187 GB, free: 95.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.7628, allocations: 464.7 kB / 0.5191 GB, free: 95.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006428/0.7635, allocations: 259 kB / 0.5194 GB, free: 95.78 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.69e-05/0.7636, allocations: 7.469 kB / 0.5194 GB, free: 95.78 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.7636, allocations: 40.59 kB / 0.5194 GB, free: 95.74 MB / 394.7 MB Notification: Performance of pre-optimization done (n=61): time 2.786e-06/0.7636, allocations: 0 / 0.5194 GB, free: 95.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=64): time 0.003496/0.7671, allocations: 1.44 MB / 0.5208 GB, free: 95.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.7672, allocations: 87.36 kB / 0.5209 GB, free: 95.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/0.7691, allocations: 0.9079 MB / 0.5218 GB, free: 94.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.996e-05/0.7692, allocations: 25.7 kB / 0.5218 GB, free: 94.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/0.7695, allocations: 0.6936 MB / 0.5225 GB, free: 94.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.7697, allocations: 236.7 kB / 0.5227 GB, free: 94.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.7698, allocations: 0 / 0.5227 GB, free: 94.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.7699, allocations: 351.3 kB / 0.523 GB, free: 93.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006266/0.7706, allocations: 228.4 kB / 0.5233 GB, free: 93.86 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008055/0.7714, allocations: 0.6197 MB / 0.5239 GB, free: 93.35 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007889/0.7722, allocations: 326.1 kB / 0.5242 GB, free: 93.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.7722, allocations: 4.75 kB / 0.5242 GB, free: 93.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002061/0.7743, allocations: 0.8433 MB / 0.525 GB, free: 93.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009999/0.7753, allocations: 5.299 MB / 0.5302 GB, free: 87.54 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-05/0.7754, allocations: 15.03 kB / 0.5302 GB, free: 87.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002355/0.7756, allocations: 40.8 kB / 0.5302 GB, free: 87.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001908/0.7775, allocations: 284.5 kB / 0.5305 GB, free: 87.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001023/0.7786, allocations: 1.248 MB / 0.5317 GB, free: 86.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009216/0.7795, allocations: 57.17 kB / 0.5318 GB, free: 86.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.402e-05/0.7796, allocations: 50.56 kB / 0.5318 GB, free: 86.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.325e-06/0.7796, allocations: 3.719 kB / 0.5318 GB, free: 86.25 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001792/0.7814, allocations: 0.7355 MB / 0.5326 GB, free: 85.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.858e-05/0.7815, allocations: 17.28 kB / 0.5326 GB, free: 85.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001325/0.7816, allocations: 38.61 kB / 0.5326 GB, free: 85.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.7833, allocations: 259.1 kB / 0.5329 GB, free: 85.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008893/0.7842, allocations: 1.242 MB / 0.5341 GB, free: 84.68 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000803/0.785, allocations: 31.34 kB / 0.5341 GB, free: 84.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.733e-05/0.7851, allocations: 47.25 kB / 0.5341 GB, free: 84.67 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.0002617/0.7853, allocations: 70.7 kB / 0.5342 GB, free: 84.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.7857, allocations: 128.4 kB / 0.5343 GB, free: 84.54 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001539/0.7873, allocations: 0.5399 MB / 0.5349 GB, free: 84.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.7873, allocations: 7.906 kB / 0.5349 GB, free: 84.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.7873, allocations: 4 kB / 0.5349 GB, free: 84.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.7873, allocations: 7.703 kB / 0.5349 GB, free: 84.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003837/0.7912, allocations: 1.748 MB / 0.5366 GB, free: 83.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.7912, allocations: 3.906 kB / 0.5366 GB, free: 83.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.7925, allocations: 148.9 kB / 0.5367 GB, free: 83.37 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001558/0.7927, allocations: 24.36 kB / 0.5368 GB, free: 83.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.969e-05/0.7928, allocations: 15.38 kB / 0.5368 GB, free: 83.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009096/0.7937, allocations: 1.229 MB / 0.538 GB, free: 82.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.7937, allocations: 3.906 kB / 0.538 GB, free: 82.12 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001947/0.7957, allocations: 1.003 MB / 0.539 GB, free: 81.47 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005633/0.7962, allocations: 251.1 kB / 0.5392 GB, free: 81.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/0.7965, allocations: 7.469 kB / 0.5392 GB, free: 81.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.7976, allocations: 57.22 kB / 0.5393 GB, free: 81.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.78e-05/0.7977, allocations: 34 kB / 0.5393 GB, free: 81.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.392e-05/0.7978, allocations: 23.75 kB / 0.5393 GB, free: 81.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001365/0.7991, allocations: 0.6677 MB / 0.54 GB, free: 80.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002171/0.8013, allocations: 465.5 kB / 0.5404 GB, free: 80.91 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete 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.0005874/0.8019, allocations: 365.3 kB / 0.5408 GB, free: 80.75 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.8047, allocations: 1.225 MB / 0.5419 GB, free: 80.18 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.8048, allocations: 4.125 kB / 0.542 GB, free: 80.18 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007032/0.8055, allocations: 348.9 kB / 0.5423 GB, free: 79.98 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.8077, allocations: 256.2 kB / 0.5425 GB, free: 79.91 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006272/0.814, allocations: 2.095 MB / 0.5446 GB, free: 78.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001517/0.8156, allocations: 1.371 MB / 0.5459 GB, free: 78.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.232e-06/0.8156, allocations: 1.094 kB / 0.5459 GB, free: 78.18 MB / 394.7 MB Notification: Performance of Templates: time 0.04601/0.8616, allocations: 25.27 MB / 0.5706 GB, free: 66.53 MB / 394.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/jenkins1/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