Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001487, allocations: 196.4 kB / 18.1 MB, free: 3.605 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 226.5 MB / 245.4 MB, free: 8.262 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008146/0.0008147, allocations: 100.7 kB / 297.5 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002309/0.0002309, allocations: 8 kB / 358.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2261, allocations: 51.3 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1154/0.3415, allocations: 100.2 MB / 0.4976 GB, free: 7.359 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.3418, allocations: 91.94 kB / 0.4977 GB, free: 7.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3123/0.6541, allocations: 27.47 MB / 0.5245 GB, free: 88.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.6541, allocations: 0 / 0.5245 GB, free: 88.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001181/0.6543, allocations: 31.91 kB / 0.5245 GB, free: 88.65 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.003268/0.6575, allocations: 1.296 MB / 0.5258 GB, free: 87.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.6576, allocations: 8.031 kB / 0.5258 GB, free: 87.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009574/0.6586, allocations: 195.2 kB / 0.526 GB, free: 87.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.6609, allocations: 0.8676 MB / 0.5269 GB, free: 86.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.43e-05/0.661, allocations: 74.94 kB / 0.5269 GB, free: 86.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.6612, allocations: 96 kB / 0.527 GB, free: 86.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002317/0.6636, allocations: 0.9496 MB / 0.5279 GB, free: 85.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.756e-05/0.6636, allocations: 7.906 kB / 0.528 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/0.6638, allocations: 40 kB / 0.528 GB, free: 85.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.585e-05/0.6638, allocations: 27.98 kB / 0.528 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.6656, allocations: 0.6324 MB / 0.5286 GB, free: 84.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006993/0.6726, allocations: 4.152 MB / 0.5327 GB, free: 80 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.6739, allocations: 385.4 kB / 0.5331 GB, free: 79.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003941/0.6743, allocations: 160.8 kB / 0.5332 GB, free: 79.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.6744, allocations: 4 kB / 0.5332 GB, free: 79.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.6744, allocations: 42.5 kB / 0.5333 GB, free: 79.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.566e-06/0.6744, allocations: 0 / 0.5333 GB, free: 79.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.003072/0.6775, allocations: 1.292 MB / 0.5345 GB, free: 78.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.6776, allocations: 85.05 kB / 0.5346 GB, free: 77.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001372/0.679, allocations: 0.8546 MB / 0.5354 GB, free: 77.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.679, allocations: 37.7 kB / 0.5355 GB, free: 77.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004112/0.6794, allocations: 0.5914 MB / 0.536 GB, free: 76.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001094/0.6795, allocations: 149.8 kB / 0.5362 GB, free: 76.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.6796, allocations: 11.94 kB / 0.5362 GB, free: 76.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.55e-05/0.6797, allocations: 339 kB / 0.5365 GB, free: 75.92 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.6801, allocations: 157.9 kB / 0.5367 GB, free: 75.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005316/0.6806, allocations: 484.8 kB / 0.5371 GB, free: 75.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009675/0.6816, allocations: 0.6716 MB / 0.5378 GB, free: 74.33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.6816, allocations: 4 kB / 0.5378 GB, free: 74.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001527/0.6831, allocations: 0.7313 MB / 0.5385 GB, free: 73.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002475/0.6834, allocations: 416.7 kB / 0.5389 GB, free: 73.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.106e-05/0.6834, allocations: 8 kB / 0.5389 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.6837, allocations: 36.78 kB / 0.5389 GB, free: 72.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008217/0.6845, allocations: 171.7 kB / 0.5391 GB, free: 72.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009761/0.6855, allocations: 1.288 MB / 0.5404 GB, free: 71.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009457/0.6864, allocations: 31.91 kB / 0.5404 GB, free: 71.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.16e-05/0.6865, allocations: 36 kB / 0.5404 GB, free: 71.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.6865, allocations: 6.969 kB / 0.5404 GB, free: 71.33 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001277/0.6878, allocations: 0.6219 MB / 0.541 GB, free: 70.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.6879, allocations: 12 kB / 0.5411 GB, free: 70.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001118/0.688, allocations: 36.84 kB / 0.5411 GB, free: 70.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.6887, allocations: 163.7 kB / 0.5413 GB, free: 70.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000819/0.6896, allocations: 1.288 MB / 0.5425 GB, free: 69.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008361/0.6904, allocations: 31.98 kB / 0.5425 GB, free: 69.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/0.6905, allocations: 40 kB / 0.5426 GB, free: 69 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.0006375/0.6912, allocations: 348.8 kB / 0.5429 GB, free: 68.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.6913, allocations: 94.78 kB / 0.543 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006789/0.692, allocations: 419.5 kB / 0.5434 GB, free: 68.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.692, allocations: 4 kB / 0.5434 GB, free: 68.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.6921, allocations: 7.938 kB / 0.5434 GB, free: 68.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.6921, allocations: 3.984 kB / 0.5434 GB, free: 68.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.6936, allocations: 1.33 MB / 0.5447 GB, free: 66.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6936, allocations: 0 / 0.5447 GB, free: 66.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003291/0.694, allocations: 75.91 kB / 0.5448 GB, free: 66.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.654e-05/0.6941, allocations: 24.84 kB / 0.5448 GB, free: 66.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.332e-05/0.6941, allocations: 8.219 kB / 0.5448 GB, free: 66.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005802/0.6947, allocations: 1.281 MB / 0.5461 GB, free: 65.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.6947, allocations: 12.06 kB / 0.5461 GB, free: 65.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/0.6955, allocations: 0.6931 MB / 0.5468 GB, free: 64.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.6958, allocations: 203.9 kB / 0.547 GB, free: 64.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.197e-05/0.6959, allocations: 8 kB / 0.547 GB, free: 64.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003438/0.6963, allocations: 23.98 kB / 0.547 GB, free: 64.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.6963, allocations: 27.95 kB / 0.547 GB, free: 64.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.6963, allocations: 12 kB / 0.547 GB, free: 64.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006054/0.6969, allocations: 0.5663 MB / 0.5476 GB, free: 63.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.697, allocations: 0 / 0.5476 GB, free: 63.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001188/0.6982, allocations: 391.9 kB / 0.5479 GB, free: 63.2 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.0003634/0.6985, allocations: 293.2 kB / 0.5482 GB, free: 62.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001347/0.6999, allocations: 0.9724 MB / 0.5492 GB, free: 61.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.6999, allocations: 4 kB / 0.5492 GB, free: 61.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.7002, allocations: 276.6 kB / 0.5494 GB, free: 61.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.7015, allocations: 230.2 kB / 0.5497 GB, free: 61.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002511/0.704, allocations: 2.194 MB / 0.5518 GB, free: 59.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.7044, allocations: 1.029 MB / 0.5528 GB, free: 58.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000535/0.705, allocations: 123.5 kB / 0.5529 GB, free: 57.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.7051, allocations: 59.44 kB / 0.553 GB, free: 57.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.7051, allocations: 0 / 0.553 GB, free: 57.93 MB / 378.7 MB Notification: Performance of Templates: time 0.01717/0.7223, allocations: 11.78 MB / 0.5645 GB, free: 46.25 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches