Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 112.3 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 187 kB / 18.67 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 55.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2904, allocations: 49.42 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003344/0.2938, allocations: 2.136 MB / 403.5 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009508/0.2948, allocations: 0.5454 MB / 404.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.72e-05/0.2949, allocations: 4 kB / 404.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.295, allocations: 19.78 kB / 404.1 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.2952, allocations: 47.56 kB / 404.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.2954, allocations: 35.95 kB / 404.2 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.2956, allocations: 155.2 kB / 404.3 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2958, allocations: 61.45 kB / 404.4 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.2959, allocations: 67.72 kB / 404.5 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.296, allocations: 63.7 kB / 404.5 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.676e-05/0.2961, allocations: 12 kB / 404.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.641e-05/0.2962, allocations: 24 kB / 404.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.2962, allocations: 27.86 kB / 404.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.995e-05/0.2963, allocations: 71.64 kB / 404.7 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002273/0.2965, allocations: 160.7 kB / 404.8 MB, free: 5.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2965, allocations: 8 kB / 404.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2965, allocations: 3.938 kB / 404.8 MB, free: 5.586 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2966, allocations: 0 / 404.8 MB, free: 5.586 MB / 318.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.000636/0.2972, allocations: 442.4 kB / 405.3 MB, free: 5.105 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2972, allocations: 8.031 kB / 405.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.2973, allocations: 16.84 kB / 405.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.2976, allocations: 208 kB / 405.5 MB, free: 4.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.2976, allocations: 12.61 kB / 405.5 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.2976, allocations: 12.38 kB / 405.5 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002334/0.2979, allocations: 116.5 kB / 405.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.2979, allocations: 0 / 405.6 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.2979, allocations: 8 kB / 405.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.219e-06/0.2979, allocations: 0 / 405.6 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001762/0.2981, allocations: 88.58 kB / 405.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008263/0.2989, allocations: 0.6096 MB / 406.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.2993, allocations: 78.62 kB / 406.4 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.702e-05/0.2993, allocations: 28.98 kB / 406.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.2994, allocations: 7.922 kB / 406.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.2994, allocations: 38.5 kB / 406.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.323e-06/0.2994, allocations: 4 kB / 406.5 MB, free: 3.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006785/0.3001, allocations: 255.4 kB / 406.7 MB, free: 3.461 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.993e-05/0.3001, allocations: 55.34 kB / 406.8 MB, free: 3.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.3003, allocations: 141.8 kB / 406.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.3003, allocations: 29.7 kB / 407 MB, free: 3.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.3004, allocations: 127.9 kB / 407.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.3004, allocations: 15.81 kB / 407.1 MB, free: 3.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.945e-05/0.3005, allocations: 25.61 kB / 407.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.3006, allocations: 322.8 kB / 407.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.182e-05/0.3006, allocations: 24 kB / 407.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.068e-05/0.3007, allocations: 42.55 kB / 407.5 MB, free: 2.633 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.3009, allocations: 70.48 kB / 407.6 MB, free: 2.555 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3009, allocations: 0 / 407.6 MB, free: 2.555 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002748/0.3011, allocations: 142.2 kB / 407.7 MB, free: 2.406 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.3012, allocations: 4 kB / 407.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3012, allocations: 0 / 407.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001855/0.3014, allocations: 40.83 kB / 407.8 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.14e-05/0.3014, allocations: 4 kB / 407.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.303, allocations: 1.699 MB / 409.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.97e-05/0.3031, allocations: 19.83 kB / 409.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.3031, allocations: 0 / 409.5 MB, free: 0.4961 MB / 318.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.0001157/0.3033, allocations: 121.8 kB / 409.6 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.3033, allocations: 11.84 kB / 409.6 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.3033, allocations: 8.719 kB / 409.6 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3033, allocations: 8.062 kB / 409.6 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3033, allocations: 3.984 kB / 409.6 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3034, allocations: 0 / 409.6 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.3036, allocations: 205.6 kB / 409.8 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3036, allocations: 0 / 409.8 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.145e-05/0.3036, allocations: 7.938 kB / 409.8 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00012/0.3038, allocations: 40.77 kB / 409.9 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3038, allocations: 8 kB / 409.9 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001337/0.3051, allocations: 1.681 MB / 411.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3051, allocations: 4.031 kB / 411.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.3055, allocations: 212.2 kB / 411.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.446e-05/0.3055, allocations: 84.95 kB / 411.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.3055, allocations: 4 kB / 411.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.3056, allocations: 7.984 kB / 411.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.721e-05/0.3057, allocations: 12.05 kB / 411.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.3057, allocations: 4 kB / 411.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.206e-05/0.3058, allocations: 105.8 kB / 412 MB, free: 13.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3058, allocations: 0 / 412 MB, free: 13.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003531/0.3062, allocations: 39.91 kB / 412 MB, free: 13.71 MB / 334.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.0001149/0.3063, allocations: 99.72 kB / 412.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003844/0.3067, allocations: 202.5 kB / 412.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3067, allocations: 0 / 412.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.3069, allocations: 150.7 kB / 412.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3072, allocations: 15.88 kB / 412.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006078/0.3078, allocations: 318 kB / 412.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.3081, allocations: 0.7041 MB / 413.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.3081, allocations: 7.438 kB / 413.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of SimCode: time 1.864e-06/0.3082, allocations: 0 / 413.5 MB, free: 12.13 MB / 334.1 MB Notification: Performance of Templates: time 0.003769/0.3119, allocations: 1.932 MB / 415.4 MB, free: 10.2 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches