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.002182/0.002182, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.071/2.071, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 94.89 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.016e-05/3.035e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3349, allocations: 47.57 MB / 362.3 MB, free: 45.88 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1587/0.4936, allocations: 97.6 MB / 459.9 MB, free: 4.691 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.494, allocations: 83.95 kB / 460 MB, free: 4.609 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1175/0.6115, allocations: 27.2 MB / 487.2 MB, free: 9.34 MB / 379.1 MB Notification: Performance of FrontEnd: time 5.711e-06/0.6116, allocations: 3.984 kB / 487.2 MB, free: 9.336 MB / 379.1 MB Notification: Performance of Transformations before backend: time 0.0001175/0.6117, allocations: 28 kB / 487.3 MB, free: 9.309 MB / 379.1 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.003454/0.6152, allocations: 1.146 MB / 488.4 MB, free: 8.117 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/0.6153, allocations: 12.03 kB / 488.4 MB, free: 8.105 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.6165, allocations: 194.3 kB / 488.6 MB, free: 7.914 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003003/0.6195, allocations: 0.8483 MB / 489.5 MB, free: 7.023 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.044e-05/0.6196, allocations: 31.94 kB / 489.5 MB, free: 6.992 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/0.6198, allocations: 64 kB / 489.5 MB, free: 6.93 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001731/0.6216, allocations: 0.5233 MB / 490.1 MB, free: 6.406 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00209/0.6237, allocations: 0.7663 MB / 490.8 MB, free: 5.602 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.489e-05/0.6238, allocations: 7.906 kB / 490.8 MB, free: 5.594 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.986e-05/0.6239, allocations: 0 / 490.8 MB, free: 5.594 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.6239, allocations: 24 kB / 490.9 MB, free: 5.57 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00869/0.6326, allocations: 3.976 MB / 494.8 MB, free: 1.371 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.6339, allocations: 330.4 kB / 495.2 MB, free: 1.043 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003339/0.6343, allocations: 140.8 kB / 495.3 MB, free: 0.9023 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.6344, allocations: 11.98 kB / 495.3 MB, free: 0.8906 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.424e-05/0.6344, allocations: 30.56 kB / 495.3 MB, free: 0.8516 MB / 379.1 MB Notification: Performance of pre-optimization done (n=37): time 2.916e-06/0.6344, allocations: 0 / 495.3 MB, free: 0.8516 MB / 379.1 MB Notification: Performance of matching and sorting (n=40): time 0.002672/0.6371, allocations: 0.9881 MB / 496.3 MB, free: 15.81 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.094e-05/0.6372, allocations: 81.11 kB / 496.4 MB, free: 15.71 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.6385, allocations: 0.6412 MB / 497.1 MB, free: 15.06 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.517e-05/0.6386, allocations: 25.7 kB / 497.1 MB, free: 15.03 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005781/0.6392, allocations: 0.6093 MB / 497.7 MB, free: 14.41 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.6394, allocations: 149.8 kB / 497.8 MB, free: 14.27 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-05/0.6394, allocations: 0 / 497.8 MB, free: 14.27 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.6396, allocations: 338.8 kB / 498.2 MB, free: 13.93 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003653/0.64, allocations: 133.6 kB / 498.3 MB, free: 13.8 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006189/0.6406, allocations: 442.3 kB / 498.7 MB, free: 13.22 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005265/0.6411, allocations: 204.9 kB / 498.9 MB, free: 13.02 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.669e-06/0.6412, allocations: 4 kB / 498.9 MB, free: 13.02 MB / 395.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001488/0.6427, allocations: 0.5681 MB / 499.5 MB, free: 12.44 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001847/0.6445, allocations: 4.095 MB / 0.4918 GB, free: 8.027 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.02e-05/0.6446, allocations: 8 kB / 0.4918 GB, free: 8.02 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002696/0.6449, allocations: 32.84 kB / 0.4918 GB, free: 7.984 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.6461, allocations: 175.7 kB / 0.492 GB, free: 7.812 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.6474, allocations: 1.237 MB / 0.4932 GB, free: 6.461 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009866/0.6484, allocations: 19.98 kB / 0.4932 GB, free: 6.441 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-05/0.6485, allocations: 32 kB / 0.4933 GB, free: 6.41 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.6486, allocations: 10.66 kB / 0.4933 GB, free: 6.402 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001332/0.6499, allocations: 0.5011 MB / 0.4938 GB, free: 5.898 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.6499, allocations: 16.25 kB / 0.4938 GB, free: 5.883 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.6501, allocations: 32.84 kB / 0.4938 GB, free: 5.848 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.6512, allocations: 167.7 kB / 0.494 GB, free: 5.684 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.6523, allocations: 1.232 MB / 0.4952 GB, free: 4.34 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005168/0.6528, allocations: 20 kB / 0.4952 GB, free: 4.32 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.603e-05/0.6529, allocations: 36 kB / 0.4952 GB, free: 4.285 MB / 395.1 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 () * 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.0002371/0.6532, allocations: 132.7 kB / 0.4953 GB, free: 4.148 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002971/0.6535, allocations: 91.02 kB / 0.4954 GB, free: 4.059 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001041/0.6545, allocations: 363.2 kB / 0.4958 GB, free: 3.691 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.6546, allocations: 4 kB / 0.4958 GB, free: 3.688 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.6546, allocations: 0 / 0.4958 GB, free: 3.688 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.6546, allocations: 3.984 kB / 0.4958 GB, free: 3.684 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.6572, allocations: 1.141 MB / 0.4969 GB, free: 2.473 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.6573, allocations: 4 kB / 0.4969 GB, free: 2.469 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007095/0.658, allocations: 75.89 kB / 0.497 GB, free: 2.395 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001399/0.6581, allocations: 25.08 kB / 0.497 GB, free: 2.367 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.093e-05/0.6582, allocations: 0 / 0.497 GB, free: 2.367 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.6594, allocations: 1.233 MB / 0.4982 GB, free: 1.023 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.026e-06/0.6594, allocations: 3.953 kB / 0.4982 GB, free: 1.02 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001472/0.6609, allocations: 0.716 MB / 0.4989 GB, free: 220 kB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004233/0.6614, allocations: 188 kB / 0.4991 GB, free: 12 kB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.2686/0.9299, allocations: 12.66 kB / 0.4991 GB, free: 108.2 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/0.9318, allocations: 12.02 kB / 0.4991 GB, free: 108.2 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.9321, allocations: 26 kB / 0.4991 GB, free: 108.2 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.945e-05/0.9321, allocations: 12.39 kB / 0.4991 GB, free: 108.2 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001176/0.9333, allocations: 486 kB / 0.4996 GB, free: 108.1 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.02e-07/0.9333, allocations: 0 / 0.4996 GB, free: 108.1 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001957/0.9353, allocations: 320 kB / 0.4999 GB, free: 108.1 MB / 395.1 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 () * 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.0005516/0.9359, allocations: 249.2 kB / 0.5002 GB, free: 108 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.938, allocations: 0.8437 MB / 0.501 GB, free: 107.8 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/0.9381, allocations: 1.125 kB / 0.501 GB, free: 107.8 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005111/0.9386, allocations: 256.9 kB / 0.5012 GB, free: 107.7 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.9405, allocations: 200.7 kB / 0.5014 GB, free: 107.7 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003739/0.9443, allocations: 1.338 MB / 0.5027 GB, free: 107.2 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007671/0.9451, allocations: 1.046 MB / 0.5037 GB, free: 106.5 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/0.9455, allocations: 60.3 kB / 0.5038 GB, free: 106.5 MB / 395.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9455, allocations: 1.859 kB / 0.5038 GB, free: 106.5 MB / 395.1 MB Notification: Performance of Templates: time 0.05056/0.996, allocations: 16.43 MB / 0.5198 GB, free: 105.7 MB / 395.1 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