Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 116.9 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 204.5 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 64.02 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0985/0.09972, allocations: 50.53 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003228/0.103, allocations: 2.156 MB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008892/0.1039, allocations: 0.6117 MB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.527e-05/0.104, allocations: 4 kB / 361.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001162/0.1041, allocations: 23.78 kB / 361.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.405e-05/0.1042, allocations: 47.56 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.1044, allocations: 47.89 kB / 361.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.1047, allocations: 167.2 kB / 361.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.1048, allocations: 57.45 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001835/0.105, allocations: 67.78 kB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1051, allocations: 67.69 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.1052, allocations: 12 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.473e-05/0.1052, allocations: 24 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.083e-05/0.1053, allocations: 35.78 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.818e-05/0.1054, allocations: 71.67 kB / 362.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.1056, allocations: 163.4 kB / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1056, allocations: 0 / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1056, allocations: 0 / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.199e-06/0.1056, allocations: 0 / 362.4 MB, free: 9.809 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005659/0.1062, allocations: 447.1 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.1062, allocations: 12.03 kB / 362.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001805/0.1064, allocations: 20.75 kB / 362.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.1067, allocations: 220 kB / 363.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.1067, allocations: 8.609 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.833e-05/0.1067, allocations: 12.38 kB / 363.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002317/0.107, allocations: 117.5 kB / 363.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.107, allocations: 4 kB / 363.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.107, allocations: 4 kB / 363.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.107, allocations: 8 kB / 363.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.1072, allocations: 80.59 kB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008101/0.108, allocations: 0.594 MB / 363.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002823/0.1083, allocations: 86.62 kB / 364 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.47e-05/0.1084, allocations: 36.91 kB / 364.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.1084, allocations: 7.938 kB / 364.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.1085, allocations: 30.56 kB / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.223e-06/0.1085, allocations: 0 / 364.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006663/0.1091, allocations: 255.4 kB / 364.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.1092, allocations: 59.34 kB / 364.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.1094, allocations: 148.8 kB / 364.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.109e-05/0.1094, allocations: 25.7 kB / 364.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1095, allocations: 139.8 kB / 364.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.1095, allocations: 15.75 kB / 364.7 MB, free: 7.262 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.577e-05/0.1096, allocations: 29.61 kB / 364.7 MB, free: 7.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1097, allocations: 318.8 kB / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.692e-05/0.1098, allocations: 23.98 kB / 365.1 MB, free: 6.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.089e-05/0.1099, allocations: 38.56 kB / 365.1 MB, free: 6.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000131/0.11, allocations: 74.5 kB / 365.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.11, allocations: 0 / 365.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002841/0.1103, allocations: 142.2 kB / 365.3 MB, free: 6.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1103, allocations: 8 kB / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1104, allocations: 0 / 365.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/0.1106, allocations: 36.89 kB / 365.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.454e-05/0.1106, allocations: 8 kB / 365.4 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001529/0.1122, allocations: 1.69 MB / 367.1 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.1122, allocations: 3.906 kB / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1123, allocations: 4 kB / 367.1 MB, free: 4.715 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.875e-05/0.1124, allocations: 137.8 kB / 367.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.1124, allocations: 7.906 kB / 367.2 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.1124, allocations: 8.719 kB / 367.2 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1124, allocations: 4 kB / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.32e-07/0.1124, allocations: 0 / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.1125, allocations: 0 / 367.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.1127, allocations: 213.7 kB / 367.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1127, allocations: 0 / 367.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.792e-05/0.1127, allocations: 15.86 kB / 367.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.1128, allocations: 36.84 kB / 367.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.036e-06/0.1128, allocations: 0 / 367.5 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.1141, allocations: 1.682 MB / 369.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1141, allocations: 0 / 369.2 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/0.1145, allocations: 228.2 kB / 369.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.978e-05/0.1145, allocations: 81.02 kB / 369.5 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.1145, allocations: 4 kB / 369.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.1146, allocations: 7.984 kB / 369.5 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.1147, allocations: 4 kB / 369.5 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.1147, allocations: 4 kB / 369.5 MB, free: 2.059 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.059e-05/0.1148, allocations: 114.8 kB / 369.6 MB, free: 1.949 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1148, allocations: 7.938 kB / 369.6 MB, free: 1.941 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.1152, allocations: 43.84 kB / 369.7 MB, free: 1.898 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001463/0.1153, allocations: 95.25 kB / 369.8 MB, free: 1.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004392/0.1158, allocations: 194.5 kB / 369.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1158, allocations: 0 / 369.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.116, allocations: 154.8 kB / 370.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.1163, allocations: 11.98 kB / 370.1 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005105/0.1168, allocations: 296.1 kB / 370.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.117, allocations: 0.7119 MB / 371.1 MB, free: 372 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.984e-05/0.1171, allocations: 8.453 kB / 371.1 MB, free: 364 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.547e-05/0.1171, allocations: 11.44 kB / 371.1 MB, free: 352 kB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1171, allocations: 0 / 371.1 MB, free: 352 kB / 302.1 MB Notification: Performance of Templates: time 0.1649/0.282, allocations: 1.488 MB / 372.6 MB, free: 19.39 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches