Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004042/0.004056, allocations: 182.1 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.149/4.149, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001786/0.001786, allocations: 92.36 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006307/0.0006309, allocations: 12 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5231/0.5238, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.03189/0.5558, allocations: 11.84 MB / 386.4 MB, free: 36.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02006/0.5759, allocations: 5.192 MB / 391.6 MB, free: 31.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005111/0.5811, allocations: 63.69 kB / 391.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006371/0.5876, allocations: 0.8432 MB / 392.5 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008232/0.5959, allocations: 0.8879 MB / 393.4 MB, free: 29.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005105/0.6011, allocations: 0.5812 MB / 393.9 MB, free: 29.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007588/0.6087, allocations: 1.595 MB / 395.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003375/0.6122, allocations: 0.834 MB / 396.4 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002337/0.6146, allocations: 0.6184 MB / 397 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002591/0.6173, allocations: 0.7346 MB / 397.7 MB, free: 25.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009083/0.6183, allocations: 96 kB / 397.8 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.6198, allocations: 132 kB / 397.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004866/0.6203, allocations: 298.7 kB / 398.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.6214, allocations: 388.7 kB / 398.6 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00565/0.6271, allocations: 2.341 MB / 401 MB, free: 22.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.6272, allocations: 3.938 kB / 401 MB, free: 22.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.639e-06/0.6273, allocations: 4 kB / 401 MB, free: 22.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001435/0.6274, allocations: 0 / 401 MB, free: 22.3 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.009101/0.6365, allocations: 1.943 MB / 402.9 MB, free: 20.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.532e-05/0.6366, allocations: 8.031 kB / 402.9 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002353/0.639, allocations: 273.3 kB / 403.2 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004994/0.6441, allocations: 1.103 MB / 404.3 MB, free: 18.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/0.6444, allocations: 123.3 kB / 404.4 MB, free: 18.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007486/0.6451, allocations: 171.9 kB / 404.6 MB, free: 18.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007925/0.6531, allocations: 1.586 MB / 406.2 MB, free: 16.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001207/0.6533, allocations: 7.906 kB / 406.2 MB, free: 16.92 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003487/0.6536, allocations: 76 kB / 406.2 MB, free: 16.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.634e-05/0.6537, allocations: 40 kB / 406.3 MB, free: 16.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006707/0.6605, allocations: 1.105 MB / 407.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02355/0.6841, allocations: 6.69 MB / 414.1 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004756/0.6889, allocations: 1.004 MB / 415.1 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001031/0.6891, allocations: 4.562 kB / 415.1 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.564e-05/0.6892, allocations: 43.12 kB / 415.1 MB, free: 7.586 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 6.583e-06/0.6892, allocations: 0 / 415.1 MB, free: 7.586 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.0109/0.7001, allocations: 2.132 MB / 417.3 MB, free: 5.383 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.622e-05/0.7002, allocations: 85.67 kB / 417.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004149/0.7044, allocations: 1.258 MB / 418.6 MB, free: 4.008 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001996/0.7047, allocations: 37.7 kB / 418.6 MB, free: 3.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001024/0.7057, allocations: 0.8629 MB / 419.5 MB, free: 3.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004703/0.7062, allocations: 248.6 kB / 419.7 MB, free: 2.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/0.7064, allocations: 24 kB / 419.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.7066, allocations: 346.8 kB / 420.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/0.7084, allocations: 314.5 kB / 420.4 MB, free: 2.172 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002408/0.7109, allocations: 0.7119 MB / 421.1 MB, free: 1.266 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002162/0.7131, allocations: 419 kB / 421.5 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.268e-05/0.7132, allocations: 4 kB / 421.5 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00558/0.7188, allocations: 1.103 MB / 422.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003898/0.7228, allocations: 5.312 MB / 427.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.842e-05/0.7229, allocations: 12 kB / 428 MB, free: 10 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000449/0.7234, allocations: 52.78 kB / 428 MB, free: 9.949 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003154/0.7266, allocations: 263.6 kB / 428.3 MB, free: 9.691 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002285/0.729, allocations: 1.311 MB / 429.6 MB, free: 8.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002688/0.7317, allocations: 80.06 kB / 429.7 MB, free: 8.172 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003225/0.7321, allocations: 48 kB / 429.7 MB, free: 8.125 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.7322, allocations: 4 kB / 429.7 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005034/0.7372, allocations: 0.9456 MB / 430.7 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/0.7374, allocations: 16.09 kB / 430.7 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.7377, allocations: 53.27 kB / 430.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002825/0.7405, allocations: 251.6 kB / 431 MB, free: 6.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.7427, allocations: 1.296 MB / 432.3 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.7441, allocations: 47.98 kB / 432.3 MB, free: 5.379 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001843/0.7443, allocations: 52 kB / 432.4 MB, free: 5.328 MB / 314.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 (139): * Single equations (assignments): 138 * 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.002005/0.7464, allocations: 443.8 kB / 432.8 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006807/0.7471, allocations: 134.3 kB / 432.9 MB, free: 4.754 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004287/0.7514, allocations: 0.7278 MB / 433.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.927e-05/0.7515, allocations: 8 kB / 433.7 MB, free: 4.004 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.7515, allocations: 3.938 kB / 433.7 MB, free: 4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.643e-05/0.7516, allocations: 7.938 kB / 433.7 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01039/0.762, allocations: 2.158 MB / 435.8 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.762, allocations: 0 / 435.8 MB, free: 1.742 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002183/0.7643, allocations: 144.1 kB / 436 MB, free: 1.602 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002776/0.7646, allocations: 24.8 kB / 436 MB, free: 1.574 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001605/0.7648, allocations: 19.98 kB / 436 MB, free: 1.555 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.7668, allocations: 1.288 MB / 437.3 MB, free: 140 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/0.7669, allocations: 7.953 kB / 437.3 MB, free: 132 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006142/0.773, allocations: 1.257 MB / 438.6 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/0.7745, allocations: 271.3 kB / 438.8 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005083/0.775, allocations: 20 kB / 438.9 MB, free: 14.47 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002027/0.7771, allocations: 59.95 kB / 438.9 MB, free: 14.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002889/0.7774, allocations: 40.5 kB / 439 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.7776, allocations: 20 kB / 439 MB, free: 14.35 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003406/0.781, allocations: 0.8346 MB / 439.8 MB, free: 13.51 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.713e-06/0.7811, allocations: 0 / 439.8 MB, free: 13.51 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004901/0.786, allocations: 0.5001 MB / 440.3 MB, free: 13.01 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.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,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.0005438/0.7866, allocations: 135 kB / 440.4 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007551/0.7942, allocations: 1.482 MB / 441.9 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.525e-05/0.7943, allocations: 0 / 441.9 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.7965, allocations: 435.7 kB / 442.3 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004175/0.8007, allocations: 309.7 kB / 442.6 MB, free: 10.64 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.8154, allocations: 3.518 MB / 446.2 MB, free: 7.066 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002181/0.8176, allocations: 1.272 MB / 447.4 MB, free: 5.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009098/0.8186, allocations: 91.44 kB / 447.5 MB, free: 5.672 MB / 330.7 MB Notification: Performance of SimCode: time 1.863e-06/0.8187, allocations: 3.938 kB / 447.5 MB, free: 5.668 MB / 330.7 MB Notification: Performance of Templates: time 0.08803/0.9067, allocations: 24.55 MB / 472.1 MB, free: 13.09 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/SpeedControlledDCPM/SpeedControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches