Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,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|speedController.integrator.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008846/0.0008846, allocations: 178.9 kB / 17.03 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 223.3 MB / 241 MB, free: 10.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006969/0.0006969, allocations: 96.19 kB / 292.2 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002252/0.0002253, allocations: 4 kB / 351.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1843, allocations: 50.41 MB / 402.2 MB, free: 32.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.008952/0.1933, allocations: 13.3 MB / 415.5 MB, free: 19.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006528/0.1998, allocations: 5.261 MB / 420.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.2014, allocations: 71.69 kB / 420.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001517/0.2029, allocations: 0.7805 MB / 421.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009587/0.2039, allocations: 0.4923 MB / 422.1 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008672/0.2048, allocations: 479.4 kB / 422.6 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.2063, allocations: 2.426 MB / 425 MB, free: 9.695 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000884/0.2072, allocations: 0.8934 MB / 425.9 MB, free: 8.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007189/0.2079, allocations: 0.7892 MB / 426.7 MB, free: 7.977 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006066/0.2085, allocations: 0.8317 MB / 427.5 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.2087, allocations: 96 kB / 427.6 MB, free: 7.047 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.2089, allocations: 100 kB / 427.7 MB, free: 6.949 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.2091, allocations: 342.4 kB / 428 MB, free: 6.613 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000214/0.2093, allocations: 420.6 kB / 428.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.2105, allocations: 2.442 MB / 430.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2105, allocations: 0 / 430.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2105, allocations: 0 / 430.9 MB, free: 3.746 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.456e-05/0.2105, allocations: 4 kB / 430.9 MB, free: 3.742 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.00293/0.2135, allocations: 2.123 MB / 433 MB, free: 1.562 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.2135, allocations: 15.97 kB / 433 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002547/0.2138, allocations: 249.1 kB / 433.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.2151, allocations: 1.167 MB / 434.4 MB, free: 80 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002605/0.2154, allocations: 264.8 kB / 434.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/0.2156, allocations: 195.9 kB / 434.9 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003356/0.219, allocations: 1.934 MB / 436.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.909e-05/0.2191, allocations: 4 kB / 436.8 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.2192, allocations: 79.94 kB / 436.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.2192, allocations: 52 kB / 437 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.2226, allocations: 1.618 MB / 438.6 MB, free: 11.86 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008749/0.2313, allocations: 7.278 MB / 445.9 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002471/0.2338, allocations: 1.265 MB / 447.1 MB, free: 2.914 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009613/0.2348, allocations: 481.3 kB / 447.6 MB, free: 2.445 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.2349, allocations: 9 kB / 447.6 MB, free: 2.438 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.2349, allocations: 43.56 kB / 447.6 MB, free: 2.387 MB / 314.7 MB Notification: Performance of pre-optimization done (n=83): time 2.465e-06/0.2349, allocations: 0 / 447.6 MB, free: 2.387 MB / 314.7 MB Notification: Performance of matching and sorting (n=110): time 0.03053/0.2654, allocations: 8.809 MB / 456.5 MB, free: 9.441 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.2655, allocations: 68.36 kB / 456.5 MB, free: 9.363 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.2672, allocations: 1.228 MB / 457.8 MB, free: 8.125 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.862e-05/0.2673, allocations: 45.7 kB / 457.8 MB, free: 8.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007461/0.268, allocations: 0.9899 MB / 458.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003418/0.2684, allocations: 394.4 kB / 459.2 MB, free: 6.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.323e-05/0.2685, allocations: 32 kB / 459.2 MB, free: 6.648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2686, allocations: 361.9 kB / 459.6 MB, free: 6.289 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001858/0.2705, allocations: 0.7652 MB / 460.3 MB, free: 5.523 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002088/0.2726, allocations: 1.234 MB / 461.6 MB, free: 4.086 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001859/0.2744, allocations: 0.8105 MB / 462.4 MB, free: 3.277 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.2745, allocations: 4 kB / 462.4 MB, free: 3.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004541/0.279, allocations: 2.227 MB / 464.6 MB, free: 1.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003075/0.2793, allocations: 0.5191 MB / 465.1 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.2794, allocations: 19.94 kB / 465.1 MB, free: 276 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001403/0.2795, allocations: 44.84 kB / 465.2 MB, free: 228 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.2813, allocations: 447.3 kB / 465.6 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008725/0.2822, allocations: 1.292 MB / 466.9 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.2835, allocations: 167.9 kB / 467.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.2836, allocations: 64 kB / 467.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.2836, allocations: 6.812 kB / 467.1 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003886/0.2875, allocations: 1.958 MB / 469.1 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.652e-05/0.2876, allocations: 20 kB / 469.1 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.133e-05/0.2877, allocations: 44.81 kB / 469.2 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.2893, allocations: 419.7 kB / 469.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008715/0.2902, allocations: 1.276 MB / 470.8 MB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.2915, allocations: 147.9 kB / 471 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.736e-05/0.2916, allocations: 67.94 kB / 471.1 MB, free: 10.05 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.moving[1],kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * 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.0008377/0.2924, allocations: 485.6 kB / 471.5 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/0.2927, allocations: 150.1 kB / 471.7 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.2964, allocations: 1.679 MB / 473.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.2965, allocations: 15.94 kB / 473.4 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2965, allocations: 0 / 473.4 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.2965, allocations: 3.984 kB / 473.4 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006803/0.3033, allocations: 3.912 MB / 477.3 MB, free: 3.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.3033, allocations: 8 kB / 477.3 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.3044, allocations: 284.1 kB / 477.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.783e-05/0.3046, allocations: 32.86 kB / 477.6 MB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.06e-05/0.3046, allocations: 35.98 kB / 477.6 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008313/0.3055, allocations: 1.276 MB / 478.9 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-05/0.3055, allocations: 19.89 kB / 478.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004305/0.3098, allocations: 2.37 MB / 481.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/0.3103, allocations: 299.2 kB / 481.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/0.3104, allocations: 39.92 kB / 481.6 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009228/0.3114, allocations: 143.8 kB / 481.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002041/0.3116, allocations: 128.2 kB / 481.9 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.297e-05/0.3116, allocations: 39.95 kB / 481.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001062/0.3127, allocations: 0.8022 MB / 482.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3127, allocations: 0 / 482.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001676/0.3144, allocations: 0.6055 MB / 483.4 MB, free: 13.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * 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.0001937/0.3146, allocations: 154.9 kB / 483.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005819/0.3204, allocations: 2.93 MB / 486.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3204, allocations: 0 / 486.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.322, allocations: 0.7513 MB / 487.2 MB, free: 9.309 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.3236, allocations: 340.2 kB / 487.5 MB, free: 8.984 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005966/0.3296, allocations: 4.351 MB / 491.9 MB, free: 4.469 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008678/0.3305, allocations: 1.341 MB / 493.2 MB, free: 3.094 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004503/0.3309, allocations: 115.4 kB / 493.3 MB, free: 2.98 MB / 362.7 MB Notification: Performance of SimCode: time 6.41e-07/0.331, allocations: 4 kB / 493.3 MB, free: 2.977 MB / 362.7 MB Notification: Performance of Templates: time 0.1753/0.5062, allocations: 30.56 MB / 0.5116 GB, free: 93.15 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches