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.0009789/0.000979, allocations: 198.7 kB / 17.08 MB, free: 5.066 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008507/0.0008507, allocations: 100.9 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002068/0.0002068, allocations: 8 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.1792, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.2855, allocations: 100.2 MB / 0.4976 GB, free: 6.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.2857, allocations: 95.94 kB / 0.4977 GB, free: 6.316 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2158/0.5016, allocations: 27.59 MB / 0.5247 GB, free: 87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5016, allocations: 0 / 0.5247 GB, free: 87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.905e-05/0.5017, allocations: 27.94 kB / 0.5247 GB, free: 86.97 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.001986/0.5037, allocations: 1.308 MB / 0.526 GB, free: 85.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.5037, allocations: 8.031 kB / 0.526 GB, free: 85.6 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005702/0.5043, allocations: 190.2 kB / 0.5262 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.5056, allocations: 0.8394 MB / 0.527 GB, free: 84.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.5056, allocations: 74 kB / 0.5271 GB, free: 84.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.5058, allocations: 115.8 kB / 0.5272 GB, free: 84.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.507, allocations: 0.9301 MB / 0.5281 GB, free: 83.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.507, allocations: 7.984 kB / 0.5281 GB, free: 83.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.507e-05/0.5071, allocations: 40 kB / 0.5281 GB, free: 83.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.5071, allocations: 24 kB / 0.5281 GB, free: 83.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009701/0.5081, allocations: 0.6246 MB / 0.5288 GB, free: 82.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003892/0.512, allocations: 4.16 MB / 0.5328 GB, free: 78.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007596/0.5128, allocations: 377.3 kB / 0.5332 GB, free: 77.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.5128, allocations: 4 kB / 0.5332 GB, free: 77.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.5128, allocations: 38.56 kB / 0.5332 GB, free: 77.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 1.583e-06/0.5128, allocations: 0 / 0.5332 GB, free: 77.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001818/0.5147, allocations: 1.301 MB / 0.5345 GB, free: 76.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.5147, allocations: 85.11 kB / 0.5346 GB, free: 76.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007486/0.5155, allocations: 0.7522 MB / 0.5353 GB, free: 75.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.5155, allocations: 33.7 kB / 0.5353 GB, free: 75.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.5157, allocations: 0.5913 MB / 0.5359 GB, free: 75.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.915e-05/0.5158, allocations: 145.7 kB / 0.5361 GB, free: 74.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.238e-05/0.5158, allocations: 16 kB / 0.5361 GB, free: 74.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.5159, allocations: 335 kB / 0.5364 GB, free: 74.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002694/0.5162, allocations: 161.9 kB / 0.5365 GB, free: 74.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003289/0.5165, allocations: 480.8 kB / 0.537 GB, free: 73.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.5169, allocations: 243.8 kB / 0.5372 GB, free: 73.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.5169, allocations: 4 kB / 0.5372 GB, free: 73.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009545/0.5178, allocations: 0.7316 MB / 0.538 GB, free: 72.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005434/0.5184, allocations: 4.089 MB / 0.5419 GB, free: 68.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.5184, allocations: 19.98 kB / 0.542 GB, free: 68.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001235/0.5185, allocations: 36.84 kB / 0.542 GB, free: 68.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005313/0.5191, allocations: 171.7 kB / 0.5422 GB, free: 68.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000597/0.5197, allocations: 1.296 MB / 0.5434 GB, free: 66.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004696/0.5202, allocations: 35.91 kB / 0.5435 GB, free: 66.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/0.5202, allocations: 36 kB / 0.5435 GB, free: 66.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.141e-06/0.5202, allocations: 4 kB / 0.5435 GB, free: 66.63 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007612/0.521, allocations: 0.6182 MB / 0.5441 GB, free: 66.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.521, allocations: 8 kB / 0.5441 GB, free: 66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.355e-05/0.5211, allocations: 40.8 kB / 0.5442 GB, free: 65.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004691/0.5216, allocations: 171.7 kB / 0.5443 GB, free: 65.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005247/0.5221, allocations: 1.288 MB / 0.5456 GB, free: 64.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004194/0.5225, allocations: 35.89 kB / 0.5456 GB, free: 64.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.474e-05/0.5226, allocations: 36 kB / 0.5456 GB, free: 64.3 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.0002981/0.5229, allocations: 341 kB / 0.546 GB, free: 63.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.453e-05/0.523, allocations: 90.88 kB / 0.5461 GB, free: 63.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006526/0.5236, allocations: 431.4 kB / 0.5465 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.5236, allocations: 4 kB / 0.5465 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.5237, allocations: 3.938 kB / 0.5465 GB, free: 63.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.5237, allocations: 7.984 kB / 0.5465 GB, free: 63.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.5251, allocations: 1.333 MB / 0.5478 GB, free: 62.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.5251, allocations: 0 / 0.5478 GB, free: 62.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003377/0.5255, allocations: 79.89 kB / 0.5479 GB, free: 61.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.818e-05/0.5256, allocations: 20.86 kB / 0.5479 GB, free: 61.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.506e-05/0.5256, allocations: 8 kB / 0.5479 GB, free: 61.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005195/0.5261, allocations: 1.288 MB / 0.5491 GB, free: 60.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5261, allocations: 256 / 0.5491 GB, free: 60.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008154/0.5269, allocations: 0.7721 MB / 0.5499 GB, free: 59.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.5272, allocations: 207.9 kB / 0.5501 GB, free: 59.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.736e-05/0.5273, allocations: 16.06 kB / 0.5501 GB, free: 59.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003591/0.5276, allocations: 23.98 kB / 0.5501 GB, free: 59.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.345e-05/0.5277, allocations: 23.97 kB / 0.5502 GB, free: 59.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.828e-05/0.5277, allocations: 12 kB / 0.5502 GB, free: 59.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005607/0.5283, allocations: 0.5741 MB / 0.5507 GB, free: 58.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.5283, allocations: 0 / 0.5507 GB, free: 58.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001002/0.5293, allocations: 379.9 kB / 0.5511 GB, free: 58.37 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.0003326/0.5296, allocations: 300.8 kB / 0.5514 GB, free: 58.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.5308, allocations: 0.9712 MB / 0.5523 GB, free: 57.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5308, allocations: 0 / 0.5523 GB, free: 57.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003315/0.5312, allocations: 278.4 kB / 0.5526 GB, free: 56.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008291/0.532, allocations: 220.2 kB / 0.5528 GB, free: 56.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.5343, allocations: 2.202 MB / 0.555 GB, free: 54.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.5348, allocations: 1.048 MB / 0.556 GB, free: 53.27 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005233/0.5353, allocations: 123.5 kB / 0.5561 GB, free: 53.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.5354, allocations: 59.42 kB / 0.5561 GB, free: 53.08 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.5354, allocations: 0 / 0.5561 GB, free: 53.08 MB / 378.7 MB Notification: Performance of Templates: time 0.0171/0.5525, allocations: 11.59 MB / 0.5675 GB, free: 41.6 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/jenkins/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