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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008805/0.0008806, allocations: 176.8 kB / 17.4 MB, free: 4.414 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.454/1.454, allocations: 223.3 MB / 241.4 MB, free: 9.98 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.0008544/0.0008543, allocations: 92.61 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003402, allocations: 12 kB / 352.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1954/0.1958, allocations: 50.4 MB / 402.8 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2877/0.4835, allocations: 117.2 MB / 0.5078 GB, free: 101.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.4838, allocations: 91.42 kB / 0.5079 GB, free: 101.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08805/0.5719, allocations: 42.73 MB / 0.5496 GB, free: 66.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5719, allocations: 4 kB / 0.5496 GB, free: 66.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001296/0.5721, allocations: 40 kB / 0.5496 GB, free: 65.99 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.003527/0.5756, allocations: 1.915 MB / 0.5515 GB, free: 64.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.5757, allocations: 8.031 kB / 0.5515 GB, free: 64.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008153/0.5765, allocations: 266.3 kB / 0.5518 GB, free: 63.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001932/0.5784, allocations: 1.209 MB / 0.5529 GB, free: 62.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.592e-05/0.5785, allocations: 127.7 kB / 0.5531 GB, free: 62.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/0.5787, allocations: 172.2 kB / 0.5532 GB, free: 62.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.5811, allocations: 1.602 MB / 0.5548 GB, free: 60.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.308e-05/0.5812, allocations: 3.938 kB / 0.5548 GB, free: 60.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.5813, allocations: 68 kB / 0.5549 GB, free: 60.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.31e-05/0.5813, allocations: 44 kB / 0.5549 GB, free: 60.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.5832, allocations: 1.117 MB / 0.556 GB, free: 59.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007054/0.5903, allocations: 6.762 MB / 0.5626 GB, free: 52.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/0.5918, allocations: 1.018 MB / 0.5636 GB, free: 51.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004724/0.5923, allocations: 326.8 kB / 0.5639 GB, free: 50.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.5923, allocations: 12.55 kB / 0.5639 GB, free: 50.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.5924, allocations: 39.12 kB / 0.5639 GB, free: 50.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.475e-06/0.5924, allocations: 4 kB / 0.564 GB, free: 50.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.003329/0.5957, allocations: 2.12 MB / 0.566 GB, free: 48.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.5958, allocations: 81.67 kB / 0.5661 GB, free: 48.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.5972, allocations: 1.214 MB / 0.5673 GB, free: 47.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.5972, allocations: 37.7 kB / 0.5673 GB, free: 47.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003847/0.5976, allocations: 0.8922 MB / 0.5682 GB, free: 46.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.5977, allocations: 248.5 kB / 0.5684 GB, free: 46.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.5978, allocations: 20 kB / 0.5685 GB, free: 46.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.476e-05/0.5979, allocations: 353.9 kB / 0.5688 GB, free: 45.67 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005349/0.5984, allocations: 318.5 kB / 0.5691 GB, free: 45.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/0.599, allocations: 0.7197 MB / 0.5698 GB, free: 44.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.6003, allocations: 1.087 MB / 0.5709 GB, free: 43.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.6003, allocations: 4 kB / 0.5709 GB, free: 43.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001744/0.602, allocations: 1.192 MB / 0.572 GB, free: 41.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.6022, allocations: 494.7 kB / 0.5725 GB, free: 41.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.6022, allocations: 19.94 kB / 0.5725 GB, free: 41.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00014/0.6024, allocations: 40.86 kB / 0.5726 GB, free: 41.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/0.6032, allocations: 275.5 kB / 0.5728 GB, free: 40.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006602/0.6039, allocations: 1.288 MB / 0.5741 GB, free: 39.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.605, allocations: 76.03 kB / 0.5741 GB, free: 39.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.329e-05/0.605, allocations: 56 kB / 0.5742 GB, free: 39.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.6051, allocations: 4.781 kB / 0.5742 GB, free: 39.41 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001236/0.6063, allocations: 0.9494 MB / 0.5751 GB, free: 38.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.6063, allocations: 20.44 kB / 0.5752 GB, free: 38.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001139/0.6064, allocations: 44.8 kB / 0.5752 GB, free: 38.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009132/0.6074, allocations: 255.6 kB / 0.5754 GB, free: 38.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005625/0.6079, allocations: 1.299 MB / 0.5767 GB, free: 36.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007585/0.6087, allocations: 51.89 kB / 0.5768 GB, free: 36.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.6088, allocations: 55.92 kB / 0.5768 GB, free: 36.6 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 () * Number of clocked 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.0006638/0.6095, allocations: 447.2 kB / 0.5772 GB, free: 36.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.6097, allocations: 130.4 kB / 0.5774 GB, free: 36.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.6109, allocations: 0.7244 MB / 0.5781 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.611, allocations: 8 kB / 0.5781 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.611, allocations: 0 / 0.5781 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.611, allocations: 3.984 kB / 0.5781 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/0.6142, allocations: 2.135 MB / 0.5802 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.6142, allocations: 0 / 0.5802 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005857/0.6148, allocations: 152 kB / 0.5803 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001294/0.6149, allocations: 20.84 kB / 0.5803 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.425e-05/0.615, allocations: 16 kB / 0.5803 GB, free: 32.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005977/0.6156, allocations: 1.277 MB / 0.5816 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6156, allocations: 11.92 kB / 0.5816 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.6175, allocations: 1.163 MB / 0.5827 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004172/0.618, allocations: 259.4 kB / 0.583 GB, free: 29.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.6182, allocations: 23.94 kB / 0.583 GB, free: 29.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006545/0.6188, allocations: 55.95 kB / 0.5831 GB, free: 29.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.619, allocations: 52.44 kB / 0.5831 GB, free: 29.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.619, allocations: 20 kB / 0.5831 GB, free: 29.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001124/0.6202, allocations: 0.8032 MB / 0.5839 GB, free: 29.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6202, allocations: 0 / 0.5839 GB, free: 29.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001897/0.6221, allocations: 0.5547 MB / 0.5845 GB, free: 28.46 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 () * Number of clocked 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.0006813/0.6228, allocations: 407.8 kB / 0.5848 GB, free: 28.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002235/0.625, allocations: 1.495 MB / 0.5863 GB, free: 26.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.625, allocations: 4 kB / 0.5863 GB, free: 26.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005695/0.6256, allocations: 438.4 kB / 0.5867 GB, free: 26.09 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.6273, allocations: 301 kB / 0.587 GB, free: 25.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004192/0.6315, allocations: 3.46 MB / 0.5904 GB, free: 22.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006213/0.6321, allocations: 1.233 MB / 0.5916 GB, free: 21.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008096/0.6329, allocations: 182.5 kB / 0.5918 GB, free: 20.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001959/0.6332, allocations: 87.44 kB / 0.5919 GB, free: 20.75 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.6332, allocations: 0 / 0.5919 GB, free: 20.75 MB / 378.7 MB Notification: Performance of Templates: time 0.0253/0.6585, allocations: 16.81 MB / 0.6083 GB, free: 4.078 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/jenkins1/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