Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001531/0.001531, allocations: 186.3 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 1.892/1.892, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001153/0.001153, allocations: 91.25 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.0003778, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3412, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1581/0.4993, allocations: 98.34 MB / 472.9 MB, free: 14.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003373/0.4997, allocations: 87.95 kB / 473 MB, free: 14.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1209/0.6206, allocations: 27.59 MB / 0.4888 GB, free: 2.539 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.6207, allocations: 3.938 kB / 0.4888 GB, free: 2.535 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001126/0.6208, allocations: 28 kB / 0.4889 GB, free: 2.508 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.004291/0.6251, allocations: 1.316 MB / 0.4901 GB, free: 1.137 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.306e-05/0.6252, allocations: 11.97 kB / 0.4902 GB, free: 1.125 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001261/0.6265, allocations: 194.2 kB / 0.4903 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002953/0.6295, allocations: 0.8554 MB / 0.4912 GB, free: 36 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.2773/0.9069, allocations: 69.23 kB / 0.4912 GB, free: 95.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004613/0.9074, allocations: 100.1 kB / 0.4913 GB, free: 95.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003315/0.9107, allocations: 0.9273 MB / 0.4922 GB, free: 95.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.366e-05/0.9108, allocations: 8.219 kB / 0.4923 GB, free: 95.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/0.911, allocations: 43.5 kB / 0.4923 GB, free: 95.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-05/0.911, allocations: 24.09 kB / 0.4923 GB, free: 95.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002344/0.9134, allocations: 0.623 MB / 0.4929 GB, free: 95.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009145/0.9226, allocations: 4.154 MB / 0.497 GB, free: 93.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.9243, allocations: 385 kB / 0.4974 GB, free: 93.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.16e-05/0.9244, allocations: 9.047 kB / 0.4974 GB, free: 93.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.555e-05/0.9245, allocations: 40.23 kB / 0.4974 GB, free: 93.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.646e-06/0.9245, allocations: 0.9844 kB / 0.4974 GB, free: 93.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.004154/0.9286, allocations: 1.299 MB / 0.4987 GB, free: 93.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.362e-05/0.9287, allocations: 81.08 kB / 0.4987 GB, free: 93.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/0.9306, allocations: 0.7564 MB / 0.4995 GB, free: 93.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.9307, allocations: 33.98 kB / 0.4995 GB, free: 93.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004679/0.9312, allocations: 0.5988 MB / 0.5001 GB, free: 92.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.9314, allocations: 146 kB / 0.5002 GB, free: 92.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.096e-05/0.9315, allocations: 15.83 kB / 0.5003 GB, free: 92.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.162e-05/0.9316, allocations: 339.3 kB / 0.5006 GB, free: 92.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005741/0.9322, allocations: 161.7 kB / 0.5007 GB, free: 92.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007222/0.9329, allocations: 477.4 kB / 0.5012 GB, free: 92.01 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007302/0.9336, allocations: 241.8 kB / 0.5014 GB, free: 92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.9337, allocations: 3.156 kB / 0.5014 GB, free: 92 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002063/0.9358, allocations: 0.6845 MB / 0.5021 GB, free: 91.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001045/0.9369, allocations: 4.087 MB / 0.5061 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.274e-05/0.9369, allocations: 17.64 kB / 0.5061 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/0.9372, allocations: 32.95 kB / 0.5061 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/0.9385, allocations: 174 kB / 0.5063 GB, free: 87.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.9397, allocations: 1.297 MB / 0.5076 GB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.9409, allocations: 40.69 kB / 0.5076 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.9411, allocations: 34.53 kB / 0.5076 GB, free: 86.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.9411, allocations: 3.938 kB / 0.5076 GB, free: 86.41 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00177/0.9429, allocations: 0.6163 MB / 0.5082 GB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/0.9429, allocations: 10.31 kB / 0.5083 GB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001422/0.9431, allocations: 34.47 kB / 0.5083 GB, free: 86.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.9442, allocations: 170.3 kB / 0.5084 GB, free: 86.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009946/0.9452, allocations: 1.289 MB / 0.5097 GB, free: 85.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006135/0.9459, allocations: 30.53 kB / 0.5097 GB, free: 85.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.683e-05/0.9459, allocations: 38.88 kB / 0.5098 GB, free: 85.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0008189/0.9468, allocations: 349.6 kB / 0.5101 GB, free: 84.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003026/0.9471, allocations: 96 kB / 0.5102 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.9484, allocations: 419.1 kB / 0.5106 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/0.9485, allocations: 6.469 kB / 0.5106 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.9485, allocations: 0 / 0.5106 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.9485, allocations: 11.44 kB / 0.5106 GB, free: 84.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/0.9517, allocations: 1.326 MB / 0.5119 GB, free: 84.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.9518, allocations: 0 / 0.5119 GB, free: 84.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006775/0.9525, allocations: 74.16 kB / 0.512 GB, free: 84.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001486/0.9526, allocations: 28.75 kB / 0.512 GB, free: 84.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.9527, allocations: 7.969 kB / 0.512 GB, free: 84.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009401/0.9536, allocations: 1.282 MB / 0.5133 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.9537, allocations: 11.47 kB / 0.5133 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.9554, allocations: 0.7806 MB / 0.514 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005252/0.956, allocations: 194.9 kB / 0.5142 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.9562, allocations: 10.78 kB / 0.5142 GB, free: 81.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.9569, allocations: 23.38 kB / 0.5143 GB, free: 81.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.957, allocations: 38.89 kB / 0.5143 GB, free: 81.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.189e-05/0.957, allocations: 7.812 kB / 0.5143 GB, free: 81.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001127/0.9582, allocations: 0.5759 MB / 0.5149 GB, free: 81.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.9582, allocations: 0 / 0.5149 GB, free: 81.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002154/0.9604, allocations: 383.6 kB / 0.5152 GB, free: 81.66 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.0006039/0.961, allocations: 307.2 kB / 0.5155 GB, free: 81.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002384/0.9634, allocations: 0.9633 MB / 0.5165 GB, free: 81.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/0.9635, allocations: 3.375 kB / 0.5165 GB, free: 81.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000619/0.9641, allocations: 278.3 kB / 0.5167 GB, free: 80.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/0.966, allocations: 228 kB / 0.5169 GB, free: 80.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.9708, allocations: 2.257 MB / 0.5192 GB, free: 79.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/0.9715, allocations: 1.046 MB / 0.5202 GB, free: 78.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/0.9719, allocations: 62.72 kB / 0.5202 GB, free: 78.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.793e-06/0.9719, allocations: 0 / 0.5202 GB, free: 78.66 MB / 378.7 MB Notification: Performance of Templates: time 0.03149/1.003, allocations: 17.04 MB / 0.5369 GB, free: 73.95 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches