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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 88.72 kB / 16.31 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 179.8 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.3 MB / 241.2 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003282/0.0003282, allocations: 8 kB / 300.8 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1149, allocations: 50.42 MB / 351.2 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01508/0.13, allocations: 13.3 MB / 364.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.1405, allocations: 5.262 MB / 369.8 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002792/0.1434, allocations: 67.69 kB / 369.9 MB, free: 1.098 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.1458, allocations: 0.7922 MB / 370.7 MB, free: 308 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1775/0.3233, allocations: 487.4 kB / 371.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001459/0.3248, allocations: 471.5 kB / 371.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002904/0.3277, allocations: 2.422 MB / 374 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001321/0.3291, allocations: 0.8905 MB / 374.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.3304, allocations: 0.7977 MB / 375.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001042/0.3315, allocations: 0.8257 MB / 376.5 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002131/0.3317, allocations: 99 kB / 376.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002626/0.332, allocations: 97.62 kB / 376.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000302/0.3323, allocations: 341.4 kB / 377.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004002/0.3327, allocations: 417.3 kB / 377.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00255/0.3352, allocations: 2.447 MB / 379.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.3352, allocations: 1.922 kB / 379.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3353, allocations: 1.594 kB / 379.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.702e-05/0.3353, allocations: 0 / 379.9 MB, free: 9.539 MB / 302.1 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.003764/0.3391, allocations: 2.127 MB / 382 MB, free: 8.453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3392, allocations: 9.031 kB / 382.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003707/0.3395, allocations: 250.9 kB / 382.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001618/0.3412, allocations: 1.169 MB / 383.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002446/0.3414, allocations: 267.4 kB / 383.7 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002631/0.3417, allocations: 191.8 kB / 383.9 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003365/0.3451, allocations: 1.936 MB / 385.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.56e-05/0.3451, allocations: 10.09 kB / 385.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.3453, allocations: 76.69 kB / 385.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.744e-05/0.3453, allocations: 46.12 kB / 386 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00319/0.3485, allocations: 1.624 MB / 387.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008131/0.3567, allocations: 7.284 MB / 394.9 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002361/0.359, allocations: 1.259 MB / 396.2 MB, free: 2.336 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.3601, allocations: 477 kB / 396.6 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.094e-05/0.3602, allocations: 14.7 kB / 396.6 MB, free: 2.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.3602, allocations: 52.52 kB / 396.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 3.356e-06/0.3602, allocations: 0 / 396.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.02793/0.3881, allocations: 8.814 MB / 405.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.3882, allocations: 64.41 kB / 405.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001932/0.3902, allocations: 1.224 MB / 406.8 MB, free: 10.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.828e-05/0.3903, allocations: 45.7 kB / 406.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007931/0.3911, allocations: 0.9957 MB / 407.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003843/0.3915, allocations: 390.4 kB / 408.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/0.3916, allocations: 31.94 kB / 408.2 MB, free: 8.996 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.3918, allocations: 361.9 kB / 408.6 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001714/0.3935, allocations: 0.773 MB / 409.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/0.3955, allocations: 1.222 MB / 410.6 MB, free: 6.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001764/0.3973, allocations: 0.8137 MB / 411.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3973, allocations: 4 kB / 411.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004236/0.4015, allocations: 2.227 MB / 413.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003204/0.4019, allocations: 0.5154 MB / 414.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.4019, allocations: 20 kB / 414.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001511/0.402, allocations: 52.77 kB / 414.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/0.4037, allocations: 437.7 kB / 414.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008727/0.4046, allocations: 1.284 MB / 415.9 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.4059, allocations: 171.9 kB / 416.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.406, allocations: 67.98 kB / 416.2 MB, free: 500 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.406, allocations: 4 kB / 416.2 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003674/0.4097, allocations: 1.954 MB / 418.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.4097, allocations: 19.95 kB / 418.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.948e-05/0.4098, allocations: 45.34 kB / 418.2 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.4113, allocations: 415.4 kB / 418.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007806/0.4121, allocations: 1.284 MB / 419.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.4132, allocations: 136 kB / 420 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/0.4134, allocations: 71.98 kB / 420.1 MB, free: 12.41 MB / 334.1 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.001096/0.4145, allocations: 479.5 kB / 420.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.4147, allocations: 162 kB / 420.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003624/0.4183, allocations: 1.683 MB / 422.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.4183, allocations: 8 kB / 422.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.4183, allocations: 4 kB / 422.4 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.4184, allocations: 7.969 kB / 422.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006821/0.4252, allocations: 3.907 MB / 426.3 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/0.4252, allocations: 10.41 kB / 426.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.4263, allocations: 284.5 kB / 426.6 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.505e-05/0.4264, allocations: 40.78 kB / 426.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.756e-05/0.4265, allocations: 28 kB / 426.7 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008554/0.4273, allocations: 1.284 MB / 428 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.167e-05/0.4274, allocations: 11.94 kB / 428 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004102/0.4315, allocations: 2.374 MB / 430.3 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004192/0.4319, allocations: 303 kB / 430.6 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.4321, allocations: 35.94 kB / 430.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008468/0.4329, allocations: 139.9 kB / 430.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.4332, allocations: 132.2 kB / 430.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-05/0.4332, allocations: 36 kB / 431 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00106/0.4343, allocations: 0.7905 MB / 431.8 MB, free: 192 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4343, allocations: 3.938 kB / 431.8 MB, free: 188 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001805/0.4361, allocations: 0.6133 MB / 432.4 MB, free: 15.57 MB / 350.1 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.0002037/0.4363, allocations: 154.9 kB / 432.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005575/0.4419, allocations: 2.926 MB / 435.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.4419, allocations: 0 / 435.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001481/0.4434, allocations: 0.7614 MB / 436.2 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001603/0.445, allocations: 336.7 kB / 436.5 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006609/0.4516, allocations: 4.299 MB / 440.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.4527, allocations: 1.345 MB / 442.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00163/0.4544, allocations: 292.4 kB / 442.5 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.4547, allocations: 99.44 kB / 442.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4548, allocations: 0 / 442.6 MB, free: 5.152 MB / 350.1 MB Notification: Performance of Templates: time 0.0291/0.4839, allocations: 16.37 MB / 458.9 MB, free: 4.949 MB / 366.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/PositionControlledDCPM/PositionControlledDCPM.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches