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.001292/0.001292, allocations: 96.73 kB / 16.3 MB, free: 5.656 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.001435/0.001435, allocations: 183.2 kB / 17.2 MB, free: 5.59 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.345/1.345, allocations: 223.2 MB / 241.1 MB, free: 380 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002446, allocations: 19.92 kB / 300.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09807, allocations: 50.41 MB / 351.1 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.01341/0.1115, allocations: 12.32 MB / 363.5 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009348/0.1209, allocations: 5.436 MB / 368.9 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00172/0.1227, allocations: 75.62 kB / 369 MB, free: 2.156 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001891/0.1246, allocations: 0.8587 MB / 369.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001846/0.1264, allocations: 0.9384 MB / 370.8 MB, free: 360 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1796/0.306, allocations: 0.6698 MB / 371.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004311/0.3103, allocations: 1.794 MB / 373.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.3117, allocations: 0.8882 MB / 374.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.313, allocations: 0.792 MB / 374.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009968/0.314, allocations: 0.8178 MB / 375.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001811/0.3142, allocations: 95.5 kB / 375.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.3145, allocations: 97.03 kB / 375.9 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002862/0.3148, allocations: 338.5 kB / 376.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003534/0.3151, allocations: 425.3 kB / 376.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00244/0.3176, allocations: 2.414 MB / 379.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.3176, allocations: 0 / 379.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3176, allocations: 2.047 kB / 379.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.995e-05/0.3177, allocations: 0 / 379.1 MB, free: 9.633 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.003664/0.3213, allocations: 2.125 MB / 381.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.3214, allocations: 9 kB / 381.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003464/0.3217, allocations: 249 kB / 381.5 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.3234, allocations: 1.171 MB / 382.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002417/0.3236, allocations: 259.9 kB / 382.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/0.3239, allocations: 195.3 kB / 383.1 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003323/0.3272, allocations: 1.929 MB / 385 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/0.3272, allocations: 2.25 kB / 385 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.3274, allocations: 76.56 kB / 385.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.267e-05/0.3274, allocations: 45.41 kB / 385.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003376/0.3308, allocations: 1.624 MB / 386.8 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008194/0.339, allocations: 7.281 MB / 394 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/0.3415, allocations: 1.252 MB / 395.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.86e-05/0.3415, allocations: 10.66 kB / 395.3 MB, free: 2.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.3416, allocations: 42.69 kB / 395.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of pre-optimization done (n=83): time 2.745e-06/0.3416, allocations: 0 / 395.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of matching and sorting (n=110): time 0.03085/0.3724, allocations: 8.814 MB / 404.2 MB, free: 13.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.3725, allocations: 60.41 kB / 404.2 MB, free: 13.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.3742, allocations: 1.22 MB / 405.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.129e-05/0.3743, allocations: 41.7 kB / 405.5 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006897/0.375, allocations: 0.9987 MB / 406.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000305/0.3753, allocations: 389.6 kB / 406.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.214e-05/0.3754, allocations: 32 kB / 406.9 MB, free: 11.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3755, allocations: 369.9 kB / 407.2 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001914/0.3774, allocations: 0.7613 MB / 408 MB, free: 10.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002282/0.3797, allocations: 1.229 MB / 409.2 MB, free: 8.645 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/0.3817, allocations: 0.8087 MB / 410 MB, free: 7.852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.3817, allocations: 4 kB / 410 MB, free: 7.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004663/0.3864, allocations: 2.24 MB / 412.3 MB, free: 5.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002062/0.3884, allocations: 5.826 MB / 418.1 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.3885, allocations: 12 kB / 418.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001512/0.3886, allocations: 48.78 kB / 418.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/0.3905, allocations: 443.4 kB / 418.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009525/0.3914, allocations: 1.287 MB / 419.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.3929, allocations: 164 kB / 420.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.393, allocations: 67.98 kB / 420.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.514e-06/0.393, allocations: 4 kB / 420.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00407/0.3971, allocations: 1.969 MB / 422.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.3971, allocations: 18.3 kB / 422.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.894e-05/0.3972, allocations: 40.84 kB / 422.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/0.3989, allocations: 415.8 kB / 422.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008443/0.3998, allocations: 1.291 MB / 423.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.401, allocations: 144 kB / 424 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.4011, allocations: 64 kB / 424 MB, free: 9.23 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.0009382/0.4021, allocations: 487.5 kB / 424.5 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.4023, allocations: 158.1 kB / 424.7 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/0.4062, allocations: 1.675 MB / 426.4 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.4062, allocations: 12 kB / 426.4 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.4062, allocations: 0 / 426.4 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.4063, allocations: 7.969 kB / 426.4 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007183/0.4135, allocations: 3.902 MB / 430.3 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.4135, allocations: 12 kB / 430.3 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.4146, allocations: 288.1 kB / 430.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.46e-05/0.4147, allocations: 32.86 kB / 430.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.4148, allocations: 39.98 kB / 430.6 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008286/0.4156, allocations: 1.28 MB / 431.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.207e-05/0.4156, allocations: 15.94 kB / 431.9 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004644/0.4203, allocations: 2.972 MB / 434.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004661/0.4208, allocations: 303.1 kB / 435.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001694/0.4209, allocations: 39.98 kB / 435.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009205/0.4219, allocations: 135.9 kB / 435.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.4221, allocations: 136.1 kB / 435.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.283e-05/0.4222, allocations: 40 kB / 435.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00102/0.4232, allocations: 0.7904 MB / 436.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4232, allocations: 0 / 436.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001815/0.425, allocations: 0.6094 MB / 436.9 MB, free: 11.48 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.0002073/0.4252, allocations: 147 kB / 437.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005905/0.4311, allocations: 2.93 MB / 440 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.4312, allocations: 4 kB / 440 MB, free: 8.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001515/0.4327, allocations: 0.7513 MB / 440.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.434, allocations: 321.2 kB / 441.1 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006324/0.4403, allocations: 4.281 MB / 445.4 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008822/0.4412, allocations: 1.388 MB / 446.8 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001514/0.4427, allocations: 286.8 kB / 447 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.4431, allocations: 107.4 kB / 447.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4431, allocations: 0 / 447.1 MB, free: 1.062 MB / 350.1 MB Notification: Performance of Templates: time 0.03604/0.4791, allocations: 16.29 MB / 463.4 MB, free: 0.9492 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","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches