Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.0009587/0.0009588, allocations: 185.2 kB / 8.135 MB, free: 2.191 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.132/1.132, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009159/0.000916, allocations: 101.2 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.103e-06/7.144e-06, allocations: 4 kB / 336.5 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1866/0.1866, allocations: 50.39 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.3052, allocations: 116.2 MB / 0.4913 GB, free: 2.543 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.3055, allocations: 83.95 kB / 0.4914 GB, free: 2.461 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.236/0.5416, allocations: 42 MB / 0.5324 GB, free: 65.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001189/0.5417, allocations: 47.91 kB / 0.5324 GB, free: 65.2 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.002914/0.5447, allocations: 1.725 MB / 0.5341 GB, free: 63.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.5447, allocations: 8.031 kB / 0.5341 GB, free: 63.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009016/0.5456, allocations: 281.2 kB / 0.5344 GB, free: 63.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002052/0.5477, allocations: 1.166 MB / 0.5355 GB, free: 62.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.22e-05/0.5477, allocations: 55.98 kB / 0.5356 GB, free: 62.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002003/0.5479, allocations: 103.3 kB / 0.5357 GB, free: 62.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001654/0.5496, allocations: 0.8721 MB / 0.5366 GB, free: 61.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/0.5516, allocations: 1.268 MB / 0.5378 GB, free: 60.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.634e-05/0.5517, allocations: 7.906 kB / 0.5378 GB, free: 60.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.5518, allocations: 0 / 0.5378 GB, free: 60.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.85e-05/0.5518, allocations: 40 kB / 0.5378 GB, free: 60.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007571/0.5594, allocations: 6.441 MB / 0.5441 GB, free: 54.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.5604, allocations: 459 kB / 0.5446 GB, free: 53.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.5608, allocations: 259.1 kB / 0.5448 GB, free: 53.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.595e-05/0.5609, allocations: 8.5 kB / 0.5448 GB, free: 53.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/0.5609, allocations: 39.06 kB / 0.5449 GB, free: 53.35 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.675e-06/0.5609, allocations: 0 / 0.5449 GB, free: 53.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.002304/0.5632, allocations: 1.445 MB / 0.5463 GB, free: 51.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.83e-05/0.5632, allocations: 85.77 kB / 0.5463 GB, free: 51.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.5644, allocations: 0.9016 MB / 0.5472 GB, free: 50.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.5645, allocations: 25.7 kB / 0.5473 GB, free: 50.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.5647, allocations: 0.723 MB / 0.548 GB, free: 50.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.5649, allocations: 228.7 kB / 0.5482 GB, free: 49.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.242e-05/0.5649, allocations: 0 / 0.5482 GB, free: 49.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.911e-05/0.565, allocations: 349.9 kB / 0.5485 GB, free: 49.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.5653, allocations: 222.6 kB / 0.5487 GB, free: 49.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.5658, allocations: 0.6194 MB / 0.5493 GB, free: 48.48 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.5663, allocations: 339.3 kB / 0.5497 GB, free: 48.15 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.5663, allocations: 4 kB / 0.5497 GB, free: 48.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001309/0.5676, allocations: 0.9179 MB / 0.5506 GB, free: 47.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007484/0.5684, allocations: 5.318 MB / 0.5557 GB, free: 41.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.5684, allocations: 12 kB / 0.5558 GB, free: 41.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.5686, allocations: 36.86 kB / 0.5558 GB, free: 41.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009506/0.5695, allocations: 283.5 kB / 0.5561 GB, free: 41.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006669/0.5702, allocations: 1.247 MB / 0.5573 GB, free: 39.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008304/0.571, allocations: 60.03 kB / 0.5573 GB, free: 39.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.643e-05/0.5711, allocations: 48 kB / 0.5574 GB, free: 39.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.34e-06/0.5711, allocations: 4 kB / 0.5574 GB, free: 39.71 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001037/0.5722, allocations: 0.7372 MB / 0.5581 GB, free: 38.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.5722, allocations: 12.91 kB / 0.5581 GB, free: 38.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.444e-05/0.5723, allocations: 44.86 kB / 0.5582 GB, free: 38.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.5731, allocations: 259.6 kB / 0.5584 GB, free: 38.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005695/0.5737, allocations: 1.256 MB / 0.5596 GB, free: 37.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007079/0.5744, allocations: 28.14 kB / 0.5597 GB, free: 37.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.5744, allocations: 56 kB / 0.5597 GB, free: 37.2 MB / 378.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.0001392/0.5746, allocations: 151.2 kB / 0.5599 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001471/0.5747, allocations: 122.5 kB / 0.56 GB, free: 36.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008554/0.5756, allocations: 0.537 MB / 0.5605 GB, free: 36.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.5756, allocations: 8 kB / 0.5605 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5756, allocations: 7.906 kB / 0.5605 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.5756, allocations: 3.984 kB / 0.5605 GB, free: 36.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.578, allocations: 1.752 MB / 0.5622 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.578, allocations: 0 / 0.5622 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000641/0.5787, allocations: 148 kB / 0.5624 GB, free: 34.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.954e-05/0.5788, allocations: 24.86 kB / 0.5624 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.133e-05/0.5788, allocations: 11.98 kB / 0.5624 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005471/0.5794, allocations: 1.221 MB / 0.5636 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.5794, allocations: 11.92 kB / 0.5636 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001009/0.5804, allocations: 1.003 MB / 0.5646 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003341/0.5808, allocations: 251.5 kB / 0.5648 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/0.5809, allocations: 8 kB / 0.5648 GB, free: 31.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006121/0.5816, allocations: 51.95 kB / 0.5649 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.011e-05/0.5816, allocations: 40.3 kB / 0.5649 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.5817, allocations: 31.92 kB / 0.565 GB, free: 31.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007618/0.5825, allocations: 0.6558 MB / 0.5656 GB, free: 30.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001421/0.5839, allocations: 464 kB / 0.566 GB, free: 30.44 MB / 378.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.0003929/0.5843, allocations: 373.9 kB / 0.5664 GB, free: 30.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.5859, allocations: 1.263 MB / 0.5676 GB, free: 28.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5859, allocations: 4.125 kB / 0.5676 GB, free: 28.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003975/0.5863, allocations: 347.6 kB / 0.568 GB, free: 28.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.5874, allocations: 255 kB / 0.5682 GB, free: 28.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.5911, allocations: 2.069 MB / 0.5702 GB, free: 26.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008494/0.592, allocations: 1.362 MB / 0.5716 GB, free: 24.7 MB / 378.7 MB Notification: Performance of SimCode: time 4.7e-07/0.592, allocations: 0 / 0.5716 GB, free: 24.7 MB / 378.7 MB Notification: Performance of Templates: time 0.02808/0.6201, allocations: 17.82 MB / 0.589 GB, free: 7.07 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches