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.001058/0.001058, allocations: 95.8 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001414/0.001414, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000228/0.0002281, allocations: 8 kB / 308.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.0939, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002674/0.09663, allocations: 1.855 MB / 361.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.09783, allocations: 0.5963 MB / 362.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.09799, allocations: 4 kB / 362.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.09813, allocations: 19.84 kB / 362.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.09826, allocations: 43.69 kB / 362.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002509/0.09852, allocations: 43.91 kB / 362.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.09875, allocations: 155.2 kB / 362.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.09892, allocations: 45.45 kB / 362.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001788/0.09911, allocations: 59.83 kB / 362.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.09924, allocations: 63.66 kB / 362.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.383e-05/0.09927, allocations: 8 kB / 362.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.22e-05/0.09936, allocations: 15.92 kB / 362.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.684e-05/0.09939, allocations: 23.86 kB / 362.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.757e-05/0.09949, allocations: 89.38 kB / 362.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001655/0.09966, allocations: 123.9 kB / 363 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.09967, allocations: 0 / 363 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.09968, allocations: 0 / 363 MB, free: 10.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.09969, allocations: 0 / 363 MB, free: 10.14 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.000603/0.1003, allocations: 435.2 kB / 363.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.1003, allocations: 8.031 kB / 363.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002104/0.1006, allocations: 24.83 kB / 363.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.1008, allocations: 212 kB / 363.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.1008, allocations: 8.609 kB / 363.7 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.49e-05/0.1009, allocations: 12.38 kB / 363.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002698/0.1012, allocations: 123.8 kB / 363.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1012, allocations: 0 / 363.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.1012, allocations: 4 kB / 363.9 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1012, allocations: 8 kB / 363.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.1014, allocations: 84.59 kB / 363.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008789/0.1023, allocations: 0.6096 MB / 364.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.1026, allocations: 86.62 kB / 364.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.206e-05/0.1027, allocations: 36.91 kB / 364.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.1027, allocations: 0 / 364.7 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.813e-05/0.1028, allocations: 34.56 kB / 364.7 MB, free: 8.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.1028, allocations: 3.938 kB / 364.7 MB, free: 8.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007298/0.1035, allocations: 267.4 kB / 365 MB, free: 7.988 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.1036, allocations: 59.34 kB / 365 MB, free: 7.918 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.1037, allocations: 149.8 kB / 365.2 MB, free: 7.762 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.1037, allocations: 25.7 kB / 365.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.327e-05/0.1038, allocations: 127.9 kB / 365.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.1038, allocations: 19.66 kB / 365.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.1039, allocations: 21.7 kB / 365.4 MB, free: 7.555 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.104, allocations: 314.8 kB / 365.7 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.926e-05/0.1041, allocations: 31.98 kB / 365.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.613e-05/0.1041, allocations: 42.56 kB / 365.7 MB, free: 7.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001446/0.1043, allocations: 74.67 kB / 365.8 MB, free: 7.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1043, allocations: 4 kB / 365.8 MB, free: 7.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003099/0.1046, allocations: 146.2 kB / 366 MB, free: 6.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1046, allocations: 4 kB / 366 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.1047, allocations: 0 / 366 MB, free: 6.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001868/0.1049, allocations: 40.83 kB / 366 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.533e-05/0.1049, allocations: 12.06 kB / 366 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/0.1064, allocations: 1.518 MB / 367.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.822e-05/0.1065, allocations: 11.91 kB / 367.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.1065, allocations: 7.984 kB / 367.6 MB, free: 5.188 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 0.0001076/0.1066, allocations: 121.8 kB / 367.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.429e-05/0.1066, allocations: 11.91 kB / 367.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.703e-05/0.1067, allocations: 16.72 kB / 367.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1067, allocations: 0 / 367.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1067, allocations: 0 / 367.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1067, allocations: 0 / 367.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002355/0.1069, allocations: 213.6 kB / 367.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1069, allocations: 0 / 367.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.949e-05/0.107, allocations: 11.92 kB / 367.9 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001213/0.1071, allocations: 36.78 kB / 368 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.1071, allocations: 7.984 kB / 368 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001243/0.1084, allocations: 1.498 MB / 369.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1084, allocations: 0 / 369.5 MB, free: 3.082 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003122/0.1087, allocations: 220.3 kB / 369.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.438e-05/0.1088, allocations: 92.94 kB / 369.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.312e-05/0.1088, allocations: 3.938 kB / 369.8 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1089, allocations: 12.06 kB / 369.8 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.168e-05/0.109, allocations: 11.98 kB / 369.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.109, allocations: 0 / 369.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.167e-05/0.1091, allocations: 114.8 kB / 369.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1091, allocations: 0 / 369.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003598/0.1094, allocations: 43.84 kB / 370 MB, free: 2.559 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.0001228/0.1096, allocations: 95.25 kB / 370.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003815/0.11, allocations: 194.5 kB / 370.2 MB, free: 2.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.11, allocations: 0 / 370.2 MB, free: 2.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002146/0.1102, allocations: 162.8 kB / 370.4 MB, free: 2.082 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.1105, allocations: 19.5 kB / 370.4 MB, free: 2.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005983/0.1111, allocations: 398.8 kB / 370.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.1114, allocations: 0.7079 MB / 371.5 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.891e-05/0.1115, allocations: 11.44 kB / 371.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1115, allocations: 0 / 371.5 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of Templates: time 0.1578/0.2693, allocations: 1.894 MB / 373.4 MB, free: 18.54 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 -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