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/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.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/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001173/0.001173, allocations: 98.67 kB / 296.7 MB, free: 6.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 48.11 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.295, allocations: 50.47 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003126/0.2981, allocations: 2.195 MB / 409.3 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009346/0.2991, allocations: 0.5879 MB / 409.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.2992, allocations: 4 kB / 409.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.2994, allocations: 11.86 kB / 409.9 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.419e-05/0.2995, allocations: 43.69 kB / 409.9 MB, free: 24.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.2997, allocations: 39.95 kB / 409.9 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001653/0.2999, allocations: 155.2 kB / 410.1 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.3001, allocations: 45.45 kB / 410.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001783/0.3002, allocations: 55.8 kB / 410.2 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.3004, allocations: 67.69 kB / 410.3 MB, free: 24.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.3004, allocations: 12 kB / 410.3 MB, free: 24.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.616e-05/0.3005, allocations: 16 kB / 410.3 MB, free: 24.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.426e-05/0.3005, allocations: 19.92 kB / 410.3 MB, free: 24.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.767e-05/0.3006, allocations: 79.47 kB / 410.4 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.3008, allocations: 165 kB / 410.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3008, allocations: 0 / 410.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3008, allocations: 0 / 410.5 MB, free: 24.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.3008, allocations: 0 / 410.5 MB, free: 24.32 MB / 298.7 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.0005955/0.3014, allocations: 439.2 kB / 411 MB, free: 23.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.3015, allocations: 12.03 kB / 411 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.3017, allocations: 28.72 kB / 411 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.3019, allocations: 210.9 kB / 411.2 MB, free: 23.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3019, allocations: 12.61 kB / 411.2 MB, free: 23.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.972e-05/0.302, allocations: 8.375 kB / 411.2 MB, free: 23.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002125/0.3022, allocations: 119.8 kB / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.3022, allocations: 0 / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.3022, allocations: 4 kB / 411.4 MB, free: 23.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.3022, allocations: 8 kB / 411.4 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.3024, allocations: 80.66 kB / 411.4 MB, free: 23.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000682/0.3031, allocations: 0.6017 MB / 412 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.3033, allocations: 82.62 kB / 412.1 MB, free: 22.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.828e-05/0.3034, allocations: 32.97 kB / 412.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.045e-05/0.3034, allocations: 0 / 412.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.3035, allocations: 34.56 kB / 412.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.72e-07/0.3035, allocations: 4 kB / 412.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.00064/0.3041, allocations: 251.3 kB / 412.4 MB, free: 22.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.619e-05/0.3042, allocations: 59.34 kB / 412.5 MB, free: 22.13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.182e-05/0.3043, allocations: 148.2 kB / 412.6 MB, free: 21.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.3043, allocations: 25.7 kB / 412.7 MB, free: 21.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.576e-05/0.3043, allocations: 124 kB / 412.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.3044, allocations: 31.58 kB / 412.8 MB, free: 21.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.588e-05/0.3044, allocations: 17.72 kB / 412.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.33e-05/0.3045, allocations: 322.8 kB / 413.2 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.771e-05/0.3045, allocations: 23.98 kB / 413.2 MB, free: 21.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.161e-05/0.3046, allocations: 38.56 kB / 413.2 MB, free: 21.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.3047, allocations: 78.47 kB / 413.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3047, allocations: 0 / 413.3 MB, free: 21.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002338/0.305, allocations: 138.3 kB / 413.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.305, allocations: 7.984 kB / 413.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.305, allocations: 192 / 413.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001872/0.3052, allocations: 37.09 kB / 413.5 MB, free: 21.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.27e-05/0.3052, allocations: 19.86 kB / 413.5 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.3066, allocations: 1.511 MB / 415 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.995e-05/0.3066, allocations: 15.91 kB / 415 MB, free: 19.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.3067, allocations: 7.938 kB / 415 MB, free: 19.41 MB / 298.7 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 8.94e-05/0.3068, allocations: 123.3 kB / 415.1 MB, free: 19.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.3068, allocations: 7.906 kB / 415.1 MB, free: 19.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.201e-05/0.3068, allocations: 16.7 kB / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.3068, allocations: 3.938 kB / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-06/0.3068, allocations: 0 / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3068, allocations: 0 / 415.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.307, allocations: 217.6 kB / 415.4 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.307, allocations: 0 / 415.4 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.295e-05/0.3071, allocations: 4 kB / 415.4 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001083/0.3072, allocations: 36.95 kB / 415.4 MB, free: 18.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-06/0.3072, allocations: 4 kB / 415.4 MB, free: 18.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009217/0.3081, allocations: 1.51 MB / 416.9 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3081, allocations: 0 / 416.9 MB, free: 17.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/0.3086, allocations: 0.7988 MB / 417.7 MB, free: 16.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.627e-05/0.3086, allocations: 85.02 kB / 417.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.3086, allocations: 0 / 417.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.49e-05/0.3087, allocations: 7.984 kB / 417.8 MB, free: 16.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.3088, allocations: 4 kB / 417.8 MB, free: 16.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-06/0.3088, allocations: 8 kB / 417.8 MB, free: 16.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.884e-05/0.3089, allocations: 111.2 kB / 417.9 MB, free: 16.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3089, allocations: 0 / 417.9 MB, free: 16.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004258/0.3093, allocations: 43.84 kB / 418 MB, free: 16.16 MB / 298.7 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.0001262/0.3094, allocations: 98.25 kB / 418.1 MB, free: 16.06 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003696/0.3098, allocations: 182.6 kB / 418.3 MB, free: 15.87 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3098, allocations: 8 kB / 418.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.31, allocations: 158.8 kB / 418.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.3103, allocations: 11.94 kB / 418.4 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005161/0.3108, allocations: 460.5 kB / 418.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.311, allocations: 0.7196 MB / 419.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.628e-05/0.311, allocations: 4.438 kB / 419.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.596e-05/0.3111, allocations: 11.44 kB / 419.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3111, allocations: 0 / 419.6 MB, free: 14.44 MB / 298.7 MB Notification: Performance of Templates: time 0.003707/0.3148, allocations: 1.423 MB / 421 MB, free: 13.03 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches