Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") [: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 trunk/package.mo): time 0.001811/0.001811, allocations: 203.5 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.178/1.178, allocations: 225.5 MB / 234.4 MB, free: 14.95 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008951/0.0008951, allocations: 95.45 kB / 286.4 MB, free: 12.63 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.931e-06/6.041e-06, allocations: 0 / 343.1 MB, free: 3.812 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.1942, allocations: 51.46 MB / 394.6 MB, free: 33.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2452/0.4395, allocations: 117.1 MB / 0.4997 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4397, allocations: 87.5 kB / 0.4998 GB, free: 102.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.08303/0.5228, allocations: 38.56 MB / 0.5374 GB, free: 71.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001016/0.5229, allocations: 39.94 kB / 0.5375 GB, free: 71.01 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.002423/0.5253, allocations: 1.544 MB / 0.539 GB, free: 69.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.5254, allocations: 8.031 kB / 0.539 GB, free: 69.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006664/0.526, allocations: 253.7 kB / 0.5392 GB, free: 69.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.5276, allocations: 1.059 MB / 0.5403 GB, free: 68.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.5276, allocations: 48 kB / 0.5403 GB, free: 68.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.5278, allocations: 95.89 kB / 0.5404 GB, free: 67.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001273/0.5291, allocations: 0.7792 MB / 0.5412 GB, free: 67.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.5307, allocations: 1.136 MB / 0.5423 GB, free: 65.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.963e-05/0.5307, allocations: 7.906 kB / 0.5423 GB, free: 65.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.542e-05/0.5308, allocations: 0 / 0.5423 GB, free: 65.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.295e-05/0.5309, allocations: 36 kB / 0.5423 GB, free: 65.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005706/0.5366, allocations: 5.861 MB / 0.548 GB, free: 59.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006354/0.5372, allocations: 324.6 kB / 0.5483 GB, free: 59.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002806/0.5375, allocations: 200.5 kB / 0.5485 GB, free: 59.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.5376, allocations: 8.438 kB / 0.5485 GB, free: 59.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.5376, allocations: 39 kB / 0.5486 GB, free: 59.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 1.763e-06/0.5376, allocations: 0 / 0.5486 GB, free: 59.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001635/0.5392, allocations: 1.257 MB / 0.5498 GB, free: 57.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.5393, allocations: 85.53 kB / 0.5499 GB, free: 57.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008669/0.5401, allocations: 0.7926 MB / 0.5507 GB, free: 56.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.5402, allocations: 33.7 kB / 0.5507 GB, free: 56.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.5404, allocations: 0.6565 MB / 0.5513 GB, free: 56.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.897e-05/0.5405, allocations: 197.2 kB / 0.5515 GB, free: 56.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.774e-05/0.5405, allocations: 0 / 0.5515 GB, free: 56.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.105e-05/0.5406, allocations: 353.7 kB / 0.5519 GB, free: 55.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.5409, allocations: 186 kB / 0.552 GB, free: 55.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/0.5412, allocations: 0.5606 MB / 0.5526 GB, free: 54.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003656/0.5416, allocations: 295 kB / 0.5529 GB, free: 54.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.5416, allocations: 4 kB / 0.5529 GB, free: 54.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001042/0.5427, allocations: 0.8086 MB / 0.5537 GB, free: 53.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006529/0.5433, allocations: 5.135 MB / 0.5587 GB, free: 48.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.5434, allocations: 16 kB / 0.5587 GB, free: 48.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000136/0.5435, allocations: 36.84 kB / 0.5587 GB, free: 48.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007319/0.5442, allocations: 235.6 kB / 0.559 GB, free: 47.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006617/0.5449, allocations: 1.246 MB / 0.5602 GB, free: 46.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006236/0.5455, allocations: 31.97 kB / 0.5602 GB, free: 46.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.5456, allocations: 52.09 kB / 0.5603 GB, free: 46.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-06/0.5456, allocations: 4 kB / 0.5603 GB, free: 46.39 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008578/0.5465, allocations: 0.6554 MB / 0.5609 GB, free: 45.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.5465, allocations: 15.98 kB / 0.5609 GB, free: 45.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.624e-05/0.5466, allocations: 40.8 kB / 0.5609 GB, free: 45.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006531/0.5472, allocations: 228.2 kB / 0.5612 GB, free: 45.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000517/0.5478, allocations: 1.24 MB / 0.5624 GB, free: 44.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.5483, allocations: 16 kB / 0.5624 GB, free: 44.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.643e-05/0.5484, allocations: 44 kB / 0.5624 GB, free: 44.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.00012/0.5485, allocations: 144.5 kB / 0.5626 GB, free: 43.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.5486, allocations: 114.6 kB / 0.5627 GB, free: 43.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007088/0.5493, allocations: 466.8 kB / 0.5631 GB, free: 43.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/0.5493, allocations: 4 kB / 0.5631 GB, free: 43.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.5493, allocations: 0 / 0.5631 GB, free: 43.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.5494, allocations: 0 / 0.5631 GB, free: 43.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001786/0.5511, allocations: 1.535 MB / 0.5646 GB, free: 41.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.5512, allocations: 0 / 0.5646 GB, free: 41.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005016/0.5517, allocations: 120 kB / 0.5647 GB, free: 41.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.156e-05/0.5518, allocations: 24.89 kB / 0.5648 GB, free: 41.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.5518, allocations: 4 kB / 0.5648 GB, free: 41.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005204/0.5523, allocations: 1.228 MB / 0.566 GB, free: 40.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.5523, allocations: 4.031 kB / 0.566 GB, free: 40.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008119/0.5532, allocations: 0.8764 MB / 0.5668 GB, free: 39.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.5534, allocations: 231.6 kB / 0.5671 GB, free: 39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.5535, allocations: 8 kB / 0.5671 GB, free: 38.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004939/0.554, allocations: 35.97 kB / 0.5671 GB, free: 38.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.715e-05/0.5541, allocations: 24.41 kB / 0.5671 GB, free: 38.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.5541, allocations: 23.98 kB / 0.5671 GB, free: 38.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006225/0.5548, allocations: 0.5813 MB / 0.5677 GB, free: 38.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001266/0.556, allocations: 431.9 kB / 0.5681 GB, free: 37.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0003947/0.5564, allocations: 367.1 kB / 0.5685 GB, free: 37.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.5578, allocations: 1.115 MB / 0.5696 GB, free: 36.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5578, allocations: 8.188 kB / 0.5696 GB, free: 36.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003055/0.5581, allocations: 307.3 kB / 0.5699 GB, free: 36.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009457/0.559, allocations: 225.9 kB / 0.5701 GB, free: 35.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003012/0.5621, allocations: 1.824 MB / 0.5719 GB, free: 33.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006845/0.5628, allocations: 1.278 MB / 0.5731 GB, free: 32.67 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.5628, allocations: 0 / 0.5731 GB, free: 32.67 MB / 378.7 MB Notification: Performance of Templates: time 0.02431/0.5871, allocations: 15.59 MB / 0.5883 GB, free: 17.19 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches