Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008627/0.0008628, allocations: 177.3 kB / 16.71 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.199/1.199, allocations: 225.7 MB / 243.2 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007619/0.0007619, allocations: 98.19 kB / 294.4 MB, free: 9.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002504/0.0002505, allocations: 11.94 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1907, allocations: 50.42 MB / 404.6 MB, free: 31.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.00149/0.1922, allocations: 1.789 MB / 406.4 MB, free: 29.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005652/0.1928, allocations: 0.5874 MB / 406.9 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.917e-05/0.1928, allocations: 0.625 kB / 407 MB, free: 28.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.915e-05/0.1929, allocations: 11.92 kB / 407 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.083e-05/0.193, allocations: 44.97 kB / 407 MB, free: 28.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.1931, allocations: 36.86 kB / 407 MB, free: 28.82 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.1932, allocations: 151.3 kB / 407.2 MB, free: 28.67 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001066/0.1934, allocations: 47.23 kB / 407.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.238e-05/0.1934, allocations: 51.78 kB / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.659e-05/0.1935, allocations: 64.83 kB / 407.3 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.566e-05/0.1935, allocations: 4 kB / 407.4 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.789e-05/0.1936, allocations: 12 kB / 407.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.936e-05/0.1936, allocations: 24.75 kB / 407.4 MB, free: 28.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.166e-05/0.1937, allocations: 85.38 kB / 407.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.1938, allocations: 153.7 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1938, allocations: 0 / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1938, allocations: 3.531 kB / 407.6 MB, free: 28.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.1938, allocations: 0 / 407.6 MB, free: 28.23 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.0003627/0.1942, allocations: 427.2 kB / 408 MB, free: 27.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.516e-05/0.1942, allocations: 8.031 kB / 408.1 MB, free: 27.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.073e-05/0.1943, allocations: 20.75 kB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.1944, allocations: 204 kB / 408.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.564e-06/0.1945, allocations: 14.2 kB / 408.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.1945, allocations: 12.38 kB / 408.3 MB, free: 27.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001882/0.1947, allocations: 116.4 kB / 408.4 MB, free: 27.35 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1947, allocations: 7.938 kB / 408.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1947, allocations: 8 kB / 408.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.1947, allocations: 0 / 408.4 MB, free: 27.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001529/0.1949, allocations: 84.66 kB / 408.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005539/0.1954, allocations: 0.6057 MB / 409.1 MB, free: 26.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.1957, allocations: 86.56 kB / 409.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.512e-05/0.1958, allocations: 36.97 kB / 409.2 MB, free: 26.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.255e-05/0.1958, allocations: 0 / 409.2 MB, free: 26.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.126e-05/0.1958, allocations: 34.56 kB / 409.3 MB, free: 26.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.81e-07/0.1958, allocations: 3.938 kB / 409.3 MB, free: 26.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005487/0.1964, allocations: 263.4 kB / 409.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.719e-05/0.1964, allocations: 59.34 kB / 409.6 MB, free: 26.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.498e-05/0.1965, allocations: 147.7 kB / 409.7 MB, free: 25.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.844e-06/0.1965, allocations: 25.7 kB / 409.8 MB, free: 25.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.538e-05/0.1965, allocations: 128 kB / 409.9 MB, free: 25.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.093e-05/0.1965, allocations: 19.72 kB / 409.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.1965, allocations: 0 / 409.9 MB, free: 25.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.246e-05/0.1966, allocations: 318.8 kB / 410.2 MB, free: 25.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.515e-05/0.1966, allocations: 27.98 kB / 410.2 MB, free: 25.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.605e-05/0.1967, allocations: 54.44 kB / 410.3 MB, free: 25.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001072/0.1968, allocations: 66.55 kB / 410.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1968, allocations: 4 kB / 410.4 MB, free: 25.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002299/0.1971, allocations: 150.2 kB / 410.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.317e-06/0.1971, allocations: 4 kB / 410.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.1971, allocations: 0 / 410.5 MB, free: 25.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001405/0.1972, allocations: 32.84 kB / 410.5 MB, free: 25.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.939e-05/0.1973, allocations: 11.98 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009141/0.1982, allocations: 1.526 MB / 412.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.747e-05/0.1983, allocations: 7.938 kB / 412.1 MB, free: 23.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.1983, allocations: 4 kB / 412.1 MB, free: 23.33 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 6.312e-05/0.1984, allocations: 121.8 kB / 412.2 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.622e-05/0.1984, allocations: 11.84 kB / 412.2 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.726e-05/0.1984, allocations: 16.7 kB / 412.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1984, allocations: 3.938 kB / 412.2 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.21e-07/0.1984, allocations: 4 kB / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.813e-06/0.1985, allocations: 0 / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.1986, allocations: 213.6 kB / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1986, allocations: 0 / 412.5 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.649e-05/0.1986, allocations: 4 kB / 412.5 MB, free: 22.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.944e-05/0.1988, allocations: 36.83 kB / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.1988, allocations: 0 / 412.5 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007479/0.1995, allocations: 1.514 MB / 414 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1995, allocations: 0 / 414 MB, free: 21.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.1998, allocations: 220.2 kB / 414.2 MB, free: 20.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.061e-05/0.1998, allocations: 85.02 kB / 414.3 MB, free: 20.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.1998, allocations: 7.875 kB / 414.3 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.452e-05/0.1999, allocations: 11.98 kB / 414.3 MB, free: 20.86 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.1999, allocations: 11.98 kB / 414.3 MB, free: 20.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.48e-06/0.2, allocations: 0 / 414.3 MB, free: 20.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.481e-05/0.2, allocations: 109 kB / 414.4 MB, free: 20.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2, allocations: 192 / 414.4 MB, free: 20.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002793/0.2003, allocations: 36 kB / 414.5 MB, free: 20.71 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 6.577e-05/0.2004, allocations: 111.2 kB / 414.6 MB, free: 20.59 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002828/0.2007, allocations: 206.5 kB / 414.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2007, allocations: 0 / 414.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.2008, allocations: 146.7 kB / 414.9 MB, free: 20.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.201, allocations: 12.11 kB / 414.9 MB, free: 20.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003398/0.2014, allocations: 375.4 kB / 415.3 MB, free: 19.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.2015, allocations: 0.7082 MB / 416 MB, free: 19.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.459e-05/0.2015, allocations: 4.438 kB / 416 MB, free: 19.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.2016, allocations: 11.44 kB / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2016, allocations: 0 / 416 MB, free: 19.06 MB / 298.7 MB Notification: Performance of Templates: time 0.002865/0.2044, allocations: 1.351 MB / 417.4 MB, free: 17.71 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches