Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009257/0.0009258, allocations: 178.7 kB / 8.476 MB, free: 1.871 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.088/1.088, allocations: 205.2 MB / 214.1 MB, free: 5.535 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008556/0.0008556, allocations: 98.23 kB / 262.1 MB, free: 5.574 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.66e-06/5.841e-06, allocations: 0 / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06384/0.06386, allocations: 47.57 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2399/0.3038, allocations: 115.3 MB / 477.9 MB, free: 9.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.3042, allocations: 86.64 kB / 478 MB, free: 9.672 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1004/0.4046, allocations: 41.84 MB / 0.5076 GB, free: 7.395 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001183/0.4047, allocations: 40 kB / 0.5077 GB, free: 7.355 MB / 362.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.002713/0.4075, allocations: 1.725 MB / 0.5093 GB, free: 5.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.4075, allocations: 11.97 kB / 0.5094 GB, free: 5.566 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007716/0.4083, allocations: 281.3 kB / 0.5096 GB, free: 5.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001924/0.4102, allocations: 1.173 MB / 0.5108 GB, free: 4.059 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.4103, allocations: 56.44 kB / 0.5108 GB, free: 4.004 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.4105, allocations: 107.9 kB / 0.5109 GB, free: 3.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001638/0.4121, allocations: 0.8775 MB / 0.5118 GB, free: 3.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002122/0.4143, allocations: 1.263 MB / 0.513 GB, free: 1.695 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.207e-05/0.4143, allocations: 7.938 kB / 0.513 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.58e-05/0.4144, allocations: 0 / 0.513 GB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.605e-05/0.4145, allocations: 43.91 kB / 0.5131 GB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007888/0.4224, allocations: 6.451 MB / 0.5194 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.4234, allocations: 463.1 kB / 0.5198 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004075/0.4238, allocations: 250.3 kB / 0.52 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.4239, allocations: 12.5 kB / 0.5201 GB, free: 10.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.4239, allocations: 43.06 kB / 0.5201 GB, free: 10.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.134e-06/0.4239, allocations: 0 / 0.5201 GB, free: 10.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.002161/0.4261, allocations: 1.438 MB / 0.5215 GB, free: 8.625 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.4262, allocations: 81.77 kB / 0.5216 GB, free: 8.527 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.4273, allocations: 0.9098 MB / 0.5225 GB, free: 7.609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.4274, allocations: 25.7 kB / 0.5225 GB, free: 7.578 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000367/0.4278, allocations: 0.7161 MB / 0.5232 GB, free: 6.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.4279, allocations: 232.6 kB / 0.5234 GB, free: 6.621 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.428, allocations: 4 kB / 0.5234 GB, free: 6.617 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.4281, allocations: 345.9 kB / 0.5237 GB, free: 6.273 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.4285, allocations: 218.6 kB / 0.524 GB, free: 6.059 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005873/0.4291, allocations: 0.631 MB / 0.5246 GB, free: 5.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004907/0.4296, allocations: 331 kB / 0.5249 GB, free: 4.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.4296, allocations: 4 kB / 0.5249 GB, free: 4.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001386/0.431, allocations: 0.9134 MB / 0.5258 GB, free: 3.984 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001548/0.4325, allocations: 5.328 MB / 0.531 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.4325, allocations: 16 kB / 0.531 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.4327, allocations: 36.86 kB / 0.531 GB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009413/0.4336, allocations: 283.5 kB / 0.5313 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008708/0.4345, allocations: 1.252 MB / 0.5325 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/0.4352, allocations: 55.97 kB / 0.5326 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.728e-05/0.4353, allocations: 52 kB / 0.5326 GB, free: 12.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.08e-06/0.4353, allocations: 4 kB / 0.5326 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001131/0.4365, allocations: 0.7337 MB / 0.5334 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4365, allocations: 12 kB / 0.5334 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.902e-05/0.4366, allocations: 48.78 kB / 0.5334 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008237/0.4374, allocations: 256.1 kB / 0.5337 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007421/0.4382, allocations: 1.244 MB / 0.5349 GB, free: 10.04 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.4388, allocations: 27.98 kB / 0.5349 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.732e-05/0.4389, allocations: 52 kB / 0.5349 GB, free: 9.965 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.0001539/0.439, allocations: 156.5 kB / 0.5351 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.4392, allocations: 122.5 kB / 0.5352 GB, free: 9.684 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009675/0.4401, allocations: 0.5332 MB / 0.5357 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.4402, allocations: 8 kB / 0.5357 GB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4402, allocations: 0 / 0.5357 GB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.4402, allocations: 3.984 kB / 0.5357 GB, free: 9.129 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.4427, allocations: 1.768 MB / 0.5375 GB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4427, allocations: 0 / 0.5375 GB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006757/0.4434, allocations: 144.1 kB / 0.5376 GB, free: 7.148 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.066e-05/0.4435, allocations: 28.78 kB / 0.5376 GB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.758e-05/0.4435, allocations: 4 kB / 0.5376 GB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000757/0.4443, allocations: 1.221 MB / 0.5388 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.4443, allocations: 0 / 0.5388 GB, free: 5.781 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001197/0.4455, allocations: 1.012 MB / 0.5398 GB, free: 4.695 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003301/0.4458, allocations: 255.4 kB / 0.5401 GB, free: 4.426 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.446, allocations: 11.92 kB / 0.5401 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005852/0.4466, allocations: 51.97 kB / 0.5401 GB, free: 4.363 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.4467, allocations: 40.44 kB / 0.5402 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.68e-05/0.4467, allocations: 16 kB / 0.5402 GB, free: 4.309 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008546/0.4476, allocations: 0.6599 MB / 0.5408 GB, free: 3.645 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001358/0.4489, allocations: 472 kB / 0.5413 GB, free: 3.184 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.0004668/0.4494, allocations: 381.6 kB / 0.5416 GB, free: 2.805 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.4512, allocations: 1.258 MB / 0.5429 GB, free: 1.535 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4512, allocations: 0 / 0.5429 GB, free: 1.535 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000484/0.4517, allocations: 353.4 kB / 0.5432 GB, free: 1.184 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/0.4528, allocations: 267.8 kB / 0.5435 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.4566, allocations: 2.081 MB / 0.5455 GB, free: 14.77 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.4576, allocations: 1.362 MB / 0.5468 GB, free: 13.38 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4576, allocations: 0 / 0.5468 GB, free: 13.38 MB / 410.7 MB Notification: Performance of Templates: time 0.02991/0.4875, allocations: 17.84 MB / 0.5642 GB, free: 11.52 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches