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.001975/0.001975, allocations: 176.3 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.301/3.301, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.001441/0.001441, allocations: 93.41 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006326/0.0006333, allocations: 8 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5031/0.5038, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2125/0.7163, allocations: 98.5 MB / 474.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004738/0.7169, allocations: 99.92 kB / 474.3 MB, free: 13.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1118/0.8288, allocations: 27.47 MB / 0.49 GB, free: 2.348 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.8288, allocations: 3.938 kB / 0.49 GB, free: 2.344 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001248/0.8289, allocations: 24 kB / 0.4901 GB, free: 2.32 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.00456/0.8335, allocations: 1.304 MB / 0.4913 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.476e-05/0.8336, allocations: 16.02 kB / 0.4914 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001328/0.835, allocations: 187.2 kB / 0.4915 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4421/1.277, allocations: 0.8705 MB / 0.4924 GB, free: 95.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/1.277, allocations: 75.72 kB / 0.4925 GB, free: 95.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004836/1.278, allocations: 102.8 kB / 0.4926 GB, free: 95.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00381/1.282, allocations: 0.9451 MB / 0.4935 GB, free: 95.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.487e-05/1.282, allocations: 2.688 kB / 0.4935 GB, free: 95.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/1.282, allocations: 41.59 kB / 0.4935 GB, free: 95.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.934e-05/1.282, allocations: 24.09 kB / 0.4935 GB, free: 95.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002469/1.285, allocations: 0.6276 MB / 0.4942 GB, free: 95.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009855/1.294, allocations: 4.161 MB / 0.4982 GB, free: 93.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001585/1.296, allocations: 381.4 kB / 0.4986 GB, free: 93.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004933/1.297, allocations: 155.1 kB / 0.4987 GB, free: 93.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-05/1.297, allocations: 10.47 kB / 0.4987 GB, free: 93.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/1.297, allocations: 40.27 kB / 0.4988 GB, free: 93.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 7.214e-06/1.297, allocations: 0 / 0.4988 GB, free: 93.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.004482/1.301, allocations: 1.294 MB / 0.5 GB, free: 93.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/1.301, allocations: 84.3 kB / 0.5001 GB, free: 92.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002372/1.304, allocations: 0.8629 MB / 0.501 GB, free: 92.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.413e-05/1.304, allocations: 32.73 kB / 0.501 GB, free: 92.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007201/1.305, allocations: 0.5913 MB / 0.5016 GB, free: 92.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002097/1.305, allocations: 148.6 kB / 0.5017 GB, free: 92.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/1.305, allocations: 17.91 kB / 0.5017 GB, free: 92.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/1.305, allocations: 332.2 kB / 0.5021 GB, free: 92.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006347/1.306, allocations: 161.3 kB / 0.5022 GB, free: 92.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009916/1.307, allocations: 486 kB / 0.5027 GB, free: 91.78 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001745/1.308, allocations: 0.6699 MB / 0.5033 GB, free: 91.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.737e-05/1.308, allocations: 7.281 kB / 0.5033 GB, free: 91.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002965/1.311, allocations: 0.7422 MB / 0.5041 GB, free: 91.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006207/1.312, allocations: 393.2 kB / 0.5044 GB, free: 90.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.727e-05/1.312, allocations: 17.34 kB / 0.5044 GB, free: 90.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003525/1.313, allocations: 34.45 kB / 0.5045 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/1.314, allocations: 172 kB / 0.5046 GB, free: 90.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/1.315, allocations: 1.292 MB / 0.5059 GB, free: 89.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/1.317, allocations: 37.61 kB / 0.5059 GB, free: 89.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/1.317, allocations: 36.44 kB / 0.506 GB, free: 89.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/1.317, allocations: 3.938 kB / 0.506 GB, free: 89.58 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001628/1.318, allocations: 0.6202 MB / 0.5066 GB, free: 89.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-05/1.318, allocations: 15.48 kB / 0.5066 GB, free: 89.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000143/1.319, allocations: 29.64 kB / 0.5066 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007599/1.319, allocations: 171.5 kB / 0.5068 GB, free: 89.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/1.32, allocations: 1.287 MB / 0.508 GB, free: 88.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/1.322, allocations: 31.98 kB / 0.5081 GB, free: 88.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/1.322, allocations: 39.25 kB / 0.5081 GB, free: 88.2 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.001072/1.323, allocations: 347.9 kB / 0.5084 GB, free: 87.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004449/1.323, allocations: 92.59 kB / 0.5085 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001537/1.325, allocations: 419.1 kB / 0.5089 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/1.325, allocations: 7.688 kB / 0.5089 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/1.325, allocations: 0 / 0.5089 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/1.325, allocations: 4 kB / 0.5089 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004515/1.33, allocations: 1.337 MB / 0.5103 GB, free: 86.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/1.33, allocations: 0 / 0.5103 GB, free: 86.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006202/1.33, allocations: 84.45 kB / 0.5103 GB, free: 86.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/1.33, allocations: 20.33 kB / 0.5104 GB, free: 86.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.986e-05/1.33, allocations: 7.969 kB / 0.5104 GB, free: 86.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/1.332, allocations: 1.273 MB / 0.5116 GB, free: 85.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.166e-06/1.332, allocations: 7.875 kB / 0.5116 GB, free: 85.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/1.334, allocations: 0.7023 MB / 0.5123 GB, free: 85.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007006/1.334, allocations: 201.2 kB / 0.5125 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/1.335, allocations: 7.969 kB / 0.5125 GB, free: 84.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006983/1.335, allocations: 23.2 kB / 0.5125 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/1.335, allocations: 33.67 kB / 0.5125 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.42e-05/1.336, allocations: 11.88 kB / 0.5126 GB, free: 84.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001526/1.337, allocations: 0.5744 MB / 0.5131 GB, free: 84.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.337, allocations: 0 / 0.5131 GB, free: 84.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002681/1.34, allocations: 386.1 kB / 0.5135 GB, free: 84.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.0009008/1.341, allocations: 297.2 kB / 0.5138 GB, free: 84.52 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002676/1.343, allocations: 0.9727 MB / 0.5147 GB, free: 84.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/1.343, allocations: 0 / 0.5147 GB, free: 84.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005905/1.344, allocations: 276.4 kB / 0.515 GB, free: 83.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002439/1.346, allocations: 235.6 kB / 0.5152 GB, free: 83.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006417/1.353, allocations: 2.255 MB / 0.5174 GB, free: 82.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008751/1.354, allocations: 1.023 MB / 0.5184 GB, free: 81.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004652/1.354, allocations: 63.38 kB / 0.5185 GB, free: 81.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.924e-06/1.354, allocations: 0 / 0.5185 GB, free: 81.66 MB / 378.7 MB Notification: Performance of Templates: time 0.04137/1.396, allocations: 17.51 MB / 0.5356 GB, free: 75.77 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