Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001304/0.001304, allocations: 193.3 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007411/0.000741, allocations: 99.02 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002347, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1853/0.1856, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.009457/0.1951, allocations: 13.43 MB / 421.5 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008457/0.2036, allocations: 5.366 MB / 426.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002848/0.2065, allocations: 67.69 kB / 426.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002248/0.2088, allocations: 0.7845 MB / 427.7 MB, free: 8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001906/0.2107, allocations: 0.4923 MB / 428.2 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001113/0.2118, allocations: 475.4 kB / 428.6 MB, free: 7.039 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002094/0.2139, allocations: 2.478 MB / 431.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00129/0.2152, allocations: 1.133 MB / 432.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.2163, allocations: 0.8008 MB / 433.1 MB, free: 2.562 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006905/0.217, allocations: 0.8239 MB / 433.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001557/0.2172, allocations: 100 kB / 434 MB, free: 1.637 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001984/0.2174, allocations: 96 kB / 434.1 MB, free: 1.543 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.2176, allocations: 338.4 kB / 434.4 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000601/0.2182, allocations: 0.9343 MB / 435.3 MB, free: 272 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.2201, allocations: 2.442 MB / 437.8 MB, free: 13.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.2201, allocations: 4 kB / 437.8 MB, free: 13.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2201, allocations: 0 / 437.8 MB, free: 13.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.578e-05/0.2201, allocations: 0 / 437.8 MB, free: 13.81 MB / 314.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.003676/0.2238, allocations: 2.1 MB / 439.9 MB, free: 11.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.2239, allocations: 11.97 kB / 439.9 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003766/0.2243, allocations: 250 kB / 440.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.226, allocations: 1.218 MB / 441.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002798/0.2263, allocations: 261.4 kB / 441.6 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002373/0.2266, allocations: 192 kB / 441.8 MB, free: 9.664 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003399/0.23, allocations: 1.934 MB / 443.7 MB, free: 7.668 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.698e-05/0.23, allocations: 7.938 kB / 443.7 MB, free: 7.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/0.2302, allocations: 76 kB / 443.8 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.35e-05/0.2302, allocations: 47.98 kB / 443.9 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003346/0.2336, allocations: 1.618 MB / 445.5 MB, free: 5.918 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009519/0.2431, allocations: 7.305 MB / 452.8 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.2457, allocations: 1.245 MB / 454 MB, free: 12.97 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009881/0.2467, allocations: 482.7 kB / 454.5 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.76e-05/0.2467, allocations: 16.98 kB / 454.5 MB, free: 12.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.016e-05/0.2468, allocations: 47.56 kB / 454.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=83): time 3.006e-06/0.2468, allocations: 0 / 454.6 MB, free: 12.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=110): time 0.02917/0.276, allocations: 8.805 MB / 463.4 MB, free: 3.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.2761, allocations: 64.41 kB / 463.4 MB, free: 3.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001635/0.2777, allocations: 1.224 MB / 464.7 MB, free: 2.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.199e-05/0.2778, allocations: 45.7 kB / 464.7 MB, free: 2.129 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006187/0.2784, allocations: 0.9977 MB / 465.7 MB, free: 1.117 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/0.2787, allocations: 390.4 kB / 466.1 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.344e-05/0.2788, allocations: 35.94 kB / 466.1 MB, free: 0.6953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.279, allocations: 365.8 kB / 466.5 MB, free: 340 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.2807, allocations: 0.7652 MB / 467.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00202/0.2828, allocations: 1.23 MB / 468.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003513/0.2863, allocations: 1.891 MB / 470.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.2863, allocations: 4 kB / 470.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004521/0.2908, allocations: 2.231 MB / 472.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003001/0.2912, allocations: 0.5194 MB / 473.1 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.2912, allocations: 12 kB / 473.1 MB, free: 9.035 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/0.2913, allocations: 48.78 kB / 473.2 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.293, allocations: 439.3 kB / 473.6 MB, free: 8.555 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000876/0.2939, allocations: 1.288 MB / 474.9 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001325/0.2953, allocations: 160 kB / 475 MB, free: 6.977 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001134/0.2954, allocations: 64 kB / 475.1 MB, free: 6.914 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.981e-06/0.2954, allocations: 8 kB / 475.1 MB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003826/0.2992, allocations: 1.962 MB / 477.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.2993, allocations: 16 kB / 477.1 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.569e-05/0.2994, allocations: 44.78 kB / 477.1 MB, free: 4.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.3009, allocations: 415.9 kB / 477.5 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008143/0.3018, allocations: 1.291 MB / 478.8 MB, free: 3.031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.303, allocations: 140 kB / 479 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.3031, allocations: 64 kB / 479 MB, free: 2.832 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.000835/0.3039, allocations: 489.6 kB / 479.5 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.3042, allocations: 154.1 kB / 479.7 MB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.3078, allocations: 1.679 MB / 481.3 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.3079, allocations: 12 kB / 481.4 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3079, allocations: 0 / 481.4 MB, free: 476 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.3079, allocations: 7.969 kB / 481.4 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006976/0.3149, allocations: 3.92 MB / 485.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.3149, allocations: 12 kB / 485.3 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001112/0.316, allocations: 280.4 kB / 485.6 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.082e-05/0.3161, allocations: 40.78 kB / 485.6 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.29e-05/0.3162, allocations: 32 kB / 485.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000771/0.317, allocations: 1.264 MB / 486.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.317, allocations: 15.94 kB / 486.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/0.3213, allocations: 2.381 MB / 489.3 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004813/0.3218, allocations: 303 kB / 489.6 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.322, allocations: 36 kB / 489.6 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000891/0.3229, allocations: 135.9 kB / 489.8 MB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.3231, allocations: 136.1 kB / 489.9 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.899e-05/0.3232, allocations: 44 kB / 489.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001107/0.3243, allocations: 0.7944 MB / 490.7 MB, free: 6.555 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3243, allocations: 0 / 490.7 MB, free: 6.555 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001806/0.3261, allocations: 0.6055 MB / 491.3 MB, free: 5.949 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.0002053/0.3263, allocations: 158.9 kB / 491.5 MB, free: 5.781 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005735/0.3321, allocations: 2.927 MB / 494.4 MB, free: 2.836 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.3321, allocations: 4 kB / 494.4 MB, free: 2.832 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.3337, allocations: 0.7581 MB / 495.2 MB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/0.3369, allocations: 332.7 kB / 495.5 MB, free: 1.746 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005979/0.3429, allocations: 4.333 MB / 499.8 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008764/0.3438, allocations: 1.341 MB / 0.4894 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004951/0.3443, allocations: 115.4 kB / 0.4895 GB, free: 11.76 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3443, allocations: 0 / 0.4895 GB, free: 11.76 MB / 378.7 MB Notification: Performance of Templates: time 0.1812/0.5255, allocations: 30.52 MB / 0.5193 GB, free: 81.05 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches