Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.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_trunk_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009491/0.0009491, allocations: 199.4 kB / 18.06 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 226.5 MB / 245.3 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007093/0.0007093, allocations: 93.66 kB / 297.4 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002166/0.0002168, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1919, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.283/0.475, allocations: 118.9 MB / 0.5152 GB, free: 98.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.4753, allocations: 87.83 kB / 0.5153 GB, free: 98.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08461/0.5599, allocations: 42.76 MB / 0.5571 GB, free: 55.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5599, allocations: 3.938 kB / 0.5571 GB, free: 55.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.178e-05/0.56, allocations: 47.98 kB / 0.5571 GB, free: 55.71 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.002761/0.5628, allocations: 1.912 MB / 0.559 GB, free: 53.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.5628, allocations: 8.031 kB / 0.559 GB, free: 53.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006448/0.5635, allocations: 274.2 kB / 0.5592 GB, free: 53.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001634/0.5651, allocations: 1.201 MB / 0.5604 GB, free: 52.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.306e-05/0.5652, allocations: 127.6 kB / 0.5605 GB, free: 52.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.5654, allocations: 172.3 kB / 0.5607 GB, free: 51.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/0.5676, allocations: 1.602 MB / 0.5623 GB, free: 50.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.193e-05/0.5677, allocations: 11.92 kB / 0.5623 GB, free: 50.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000114/0.5678, allocations: 68 kB / 0.5623 GB, free: 50.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.158e-05/0.5678, allocations: 43.98 kB / 0.5624 GB, free: 50.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.5696, allocations: 1.113 MB / 0.5635 GB, free: 49.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006798/0.5764, allocations: 6.766 MB / 0.5701 GB, free: 41.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001483/0.5779, allocations: 1.01 MB / 0.5711 GB, free: 40.85 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004746/0.5784, allocations: 326.3 kB / 0.5714 GB, free: 40.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.214e-05/0.5785, allocations: 8.562 kB / 0.5714 GB, free: 40.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.5785, allocations: 43.12 kB / 0.5714 GB, free: 40.47 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.194e-06/0.5785, allocations: 0 / 0.5714 GB, free: 40.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.003273/0.5818, allocations: 2.113 MB / 0.5735 GB, free: 38.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.5818, allocations: 85.67 kB / 0.5736 GB, free: 38.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.5831, allocations: 1.226 MB / 0.5748 GB, free: 36.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.5832, allocations: 37.7 kB / 0.5748 GB, free: 36.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003878/0.5836, allocations: 0.892 MB / 0.5757 GB, free: 35.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.5837, allocations: 240.5 kB / 0.5759 GB, free: 35.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.799e-05/0.5838, allocations: 28 kB / 0.5759 GB, free: 35.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.384e-05/0.5838, allocations: 353.8 kB / 0.5763 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005301/0.5844, allocations: 318.5 kB / 0.5766 GB, free: 35.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006374/0.585, allocations: 0.7197 MB / 0.5773 GB, free: 34.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.5862, allocations: 1.079 MB / 0.5783 GB, free: 32.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.5862, allocations: 4 kB / 0.5783 GB, free: 32.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001697/0.5879, allocations: 1.192 MB / 0.5795 GB, free: 31.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.5881, allocations: 499.1 kB / 0.58 GB, free: 31.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5881, allocations: 19.94 kB / 0.58 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001469/0.5883, allocations: 36.84 kB / 0.58 GB, free: 30.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007682/0.589, allocations: 275.6 kB / 0.5803 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000646/0.5897, allocations: 1.295 MB / 0.5816 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007492/0.5905, allocations: 75.97 kB / 0.5816 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.546e-05/0.5905, allocations: 51.98 kB / 0.5817 GB, free: 29.13 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/0.5905, allocations: 6.656 kB / 0.5817 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001227/0.5918, allocations: 0.9499 MB / 0.5826 GB, free: 28.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.5918, allocations: 24.06 kB / 0.5826 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.635e-05/0.5919, allocations: 40.84 kB / 0.5827 GB, free: 28.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006772/0.5926, allocations: 251.6 kB / 0.5829 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005287/0.5931, allocations: 1.292 MB / 0.5842 GB, free: 26.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006475/0.5938, allocations: 51.89 kB / 0.5842 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/0.5938, allocations: 52 kB / 0.5843 GB, free: 26.33 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.0006749/0.5945, allocations: 448.8 kB / 0.5847 GB, free: 25.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.5946, allocations: 130.4 kB / 0.5848 GB, free: 25.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.5958, allocations: 0.7283 MB / 0.5855 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.5959, allocations: 4 kB / 0.5855 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.5959, allocations: 4 kB / 0.5855 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.5959, allocations: 3.984 kB / 0.5855 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002655/0.5985, allocations: 2.147 MB / 0.5876 GB, free: 22.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.5986, allocations: 0 / 0.5876 GB, free: 22.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.5991, allocations: 139.8 kB / 0.5878 GB, free: 22.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.822e-05/0.5992, allocations: 24.86 kB / 0.5878 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.5992, allocations: 16.02 kB / 0.5878 GB, free: 22.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005773/0.5998, allocations: 1.276 MB / 0.5891 GB, free: 21.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5998, allocations: 8.094 kB / 0.5891 GB, free: 21.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.6014, allocations: 1.163 MB / 0.5902 GB, free: 19.97 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003904/0.6018, allocations: 259.4 kB / 0.5905 GB, free: 19.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.602, allocations: 23.92 kB / 0.5905 GB, free: 19.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005339/0.6025, allocations: 55.97 kB / 0.5905 GB, free: 19.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.196e-05/0.6026, allocations: 48.44 kB / 0.5906 GB, free: 19.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/0.6026, allocations: 16 kB / 0.5906 GB, free: 19.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001058/0.6037, allocations: 0.811 MB / 0.5914 GB, free: 18.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6037, allocations: 0 / 0.5914 GB, free: 18.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001613/0.6053, allocations: 0.543 MB / 0.5919 GB, free: 18.2 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.0004777/0.6058, allocations: 407.7 kB / 0.5923 GB, free: 17.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.608, allocations: 1.495 MB / 0.5938 GB, free: 16.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.608, allocations: 4.75 kB / 0.5938 GB, free: 16.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005698/0.6086, allocations: 442.1 kB / 0.5942 GB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/0.6102, allocations: 311.2 kB / 0.5945 GB, free: 15.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004021/0.6142, allocations: 3.503 MB / 0.5979 GB, free: 11.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005727/0.6148, allocations: 1.237 MB / 0.5991 GB, free: 10.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000285/0.6151, allocations: 87.44 kB / 0.5992 GB, free: 10.61 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6151, allocations: 3.938 kB / 0.5992 GB, free: 10.61 MB / 378.7 MB Notification: Performance of Templates: time 0.02955/0.6446, allocations: 26.59 MB / 0.6252 GB, free: 56 kB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches