Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 179.4 kB / 8.135 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.137/1.137, allocations: 221.4 MB / 229.9 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008821/0.000882, allocations: 93.39 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.024e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1813, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1104/0.2917, allocations: 115.4 MB / 0.4906 GB, free: 3.309 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.292, allocations: 89.02 kB / 0.4906 GB, free: 3.223 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.2093/0.5013, allocations: 38.78 MB / 0.5285 GB, free: 82.28 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001251/0.5015, allocations: 36 kB / 0.5285 GB, free: 82.24 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002839/0.5043, allocations: 1.555 MB / 0.5301 GB, free: 80.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.5044, allocations: 8.031 kB / 0.5301 GB, free: 80.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008397/0.5052, allocations: 253.6 kB / 0.5303 GB, free: 80.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001981/0.5072, allocations: 1.078 MB / 0.5314 GB, free: 79.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.133e-05/0.5073, allocations: 48 kB / 0.5314 GB, free: 79.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001928/0.5075, allocations: 95.84 kB / 0.5315 GB, free: 79.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001541/0.509, allocations: 0.7987 MB / 0.5323 GB, free: 78.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001911/0.5109, allocations: 1.152 MB / 0.5334 GB, free: 77.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.699e-05/0.511, allocations: 0 / 0.5334 GB, free: 77.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.372e-05/0.5111, allocations: 4 kB / 0.5334 GB, free: 77.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.476e-05/0.5111, allocations: 36 kB / 0.5335 GB, free: 77.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006713/0.5179, allocations: 5.934 MB / 0.5392 GB, free: 70.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006768/0.5186, allocations: 319.6 kB / 0.5396 GB, free: 70.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.5189, allocations: 201.9 kB / 0.5397 GB, free: 70.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.052e-05/0.5189, allocations: 12.42 kB / 0.5398 GB, free: 70.38 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.587e-05/0.5189, allocations: 39 kB / 0.5398 GB, free: 70.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.244e-06/0.519, allocations: 0 / 0.5398 GB, free: 70.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.001825/0.5208, allocations: 1.276 MB / 0.541 GB, free: 69.01 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.285e-05/0.5208, allocations: 81.55 kB / 0.5411 GB, free: 68.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009699/0.5218, allocations: 0.8088 MB / 0.5419 GB, free: 68.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.5218, allocations: 25.7 kB / 0.5419 GB, free: 68.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.5221, allocations: 0.6604 MB / 0.5426 GB, free: 67.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.862e-05/0.5222, allocations: 193.1 kB / 0.5428 GB, free: 67.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.5222, allocations: 0 / 0.5428 GB, free: 67.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.5223, allocations: 349.9 kB / 0.5431 GB, free: 66.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.5226, allocations: 186 kB / 0.5433 GB, free: 66.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003946/0.523, allocations: 0.5645 MB / 0.5438 GB, free: 65.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003927/0.5234, allocations: 291 kB / 0.5441 GB, free: 65.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.5234, allocations: 7.938 kB / 0.5441 GB, free: 65.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001122/0.5245, allocations: 0.8163 MB / 0.5449 GB, free: 64.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007141/0.5252, allocations: 5.126 MB / 0.5499 GB, free: 59.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.5253, allocations: 12 kB / 0.5499 GB, free: 59.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/0.5254, allocations: 40.78 kB / 0.55 GB, free: 59.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007756/0.5262, allocations: 235.6 kB / 0.5502 GB, free: 58.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000674/0.5269, allocations: 1.247 MB / 0.5514 GB, free: 57.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000698/0.5276, allocations: 35.98 kB / 0.5514 GB, free: 57.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.693e-05/0.5276, allocations: 48 kB / 0.5515 GB, free: 57.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.5277, allocations: 4 kB / 0.5515 GB, free: 57.53 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009307/0.5286, allocations: 0.6593 MB / 0.5521 GB, free: 56.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.5286, allocations: 12 kB / 0.5521 GB, free: 56.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.575e-05/0.5287, allocations: 37.55 kB / 0.5522 GB, free: 56.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006696/0.5294, allocations: 223.7 kB / 0.5524 GB, free: 56.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006048/0.53, allocations: 1.244 MB / 0.5536 GB, free: 55.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006023/0.5306, allocations: 27.89 kB / 0.5536 GB, free: 55.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.602e-05/0.5307, allocations: 48 kB / 0.5537 GB, free: 55.17 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.0001255/0.5308, allocations: 141.3 kB / 0.5538 GB, free: 55.02 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.5309, allocations: 106.7 kB / 0.5539 GB, free: 54.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000747/0.5317, allocations: 478.8 kB / 0.5544 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.5317, allocations: 7.938 kB / 0.5544 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5317, allocations: 0 / 0.5544 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.361e-06/0.5317, allocations: 0 / 0.5544 GB, free: 54.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.5338, allocations: 1.555 MB / 0.5559 GB, free: 52.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.5338, allocations: 0 / 0.5559 GB, free: 52.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005402/0.5343, allocations: 116.1 kB / 0.556 GB, free: 52.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.306e-05/0.5344, allocations: 24.8 kB / 0.556 GB, free: 52.67 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.5345, allocations: 7.984 kB / 0.556 GB, free: 52.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005659/0.535, allocations: 1.224 MB / 0.5572 GB, free: 51.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5351, allocations: 3.984 kB / 0.5572 GB, free: 51.32 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008676/0.5359, allocations: 0.873 MB / 0.5581 GB, free: 50.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.5362, allocations: 239.6 kB / 0.5583 GB, free: 50.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001602/0.5364, allocations: 4 kB / 0.5583 GB, free: 50.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005202/0.5369, allocations: 31.97 kB / 0.5584 GB, free: 50.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.79e-05/0.537, allocations: 36.39 kB / 0.5584 GB, free: 50.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.537, allocations: 16 kB / 0.5584 GB, free: 50.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007402/0.5378, allocations: 0.5932 MB / 0.559 GB, free: 49.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001449/0.5392, allocations: 431.9 kB / 0.5594 GB, free: 49.01 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.0004261/0.5397, allocations: 383.1 kB / 0.5598 GB, free: 48.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001476/0.5412, allocations: 1.119 MB / 0.5609 GB, free: 47.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5412, allocations: 0 / 0.5609 GB, free: 47.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003523/0.5415, allocations: 307.2 kB / 0.5611 GB, free: 47.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.5426, allocations: 226.1 kB / 0.5614 GB, free: 47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003448/0.5461, allocations: 1.839 MB / 0.5632 GB, free: 45.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007642/0.5469, allocations: 1.282 MB / 0.5644 GB, free: 43.79 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5469, allocations: 0 / 0.5644 GB, free: 43.79 MB / 378.7 MB Notification: Performance of Templates: time 0.02591/0.5728, allocations: 15.73 MB / 0.5798 GB, free: 28.23 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches