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.ShowVariableResistor.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.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008741/0.0008739, allocations: 179 kB / 16.71 MB, free: 5.09 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.207/1.207, allocations: 225.7 MB / 243.2 MB, free: 8.512 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.0007518/0.0007518, allocations: 98.41 kB / 294.4 MB, free: 9.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002536/0.0002536, allocations: 11.94 kB / 354.2 MB, free: 13.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1961, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.002284/0.1985, allocations: 2.558 MB / 407.1 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009181/0.1994, allocations: 0.6535 MB / 407.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.1995, allocations: 4 kB / 407.8 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.1997, allocations: 47.62 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.1998, allocations: 81.22 kB / 407.9 MB, free: 27.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.2, allocations: 80.55 kB / 408 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002605/0.2003, allocations: 394.8 kB / 408.4 MB, free: 27.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.2005, allocations: 101.1 kB / 408.5 MB, free: 27.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.2006, allocations: 127.5 kB / 408.6 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.2007, allocations: 151.2 kB / 408.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.2008, allocations: 19.94 kB / 408.8 MB, free: 27.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.029e-05/0.2008, allocations: 16 kB / 408.8 MB, free: 27.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.124e-05/0.2009, allocations: 55.7 kB / 408.8 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.201, allocations: 184.9 kB / 409 MB, free: 26.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.2012, allocations: 356.2 kB / 409.4 MB, free: 26.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.2012, allocations: 0 / 409.4 MB, free: 26.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2012, allocations: 0 / 409.4 MB, free: 26.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2013, allocations: 0 / 409.4 MB, free: 26.52 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0007248/0.202, allocations: 0.5969 MB / 410 MB, free: 25.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.202, allocations: 12.03 kB / 410 MB, free: 25.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.931e-05/0.2021, allocations: 36.56 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000221/0.2023, allocations: 279.5 kB / 410.3 MB, free: 25.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.2023, allocations: 20.94 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.748e-05/0.2024, allocations: 28.31 kB / 410.3 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000412/0.2028, allocations: 273.2 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.2028, allocations: 0 / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.2028, allocations: 12 kB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.2029, allocations: 8 kB / 410.6 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/0.2033, allocations: 234.1 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.2045, allocations: 0.9756 MB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004054/0.205, allocations: 307.7 kB / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.2051, allocations: 112.8 kB / 412.2 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.2052, allocations: 4 kB / 412.2 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.848e-05/0.2052, allocations: 42.56 kB / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.163e-06/0.2052, allocations: 0 / 412.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001112/0.2063, allocations: 0.587 MB / 412.9 MB, free: 22.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.957e-05/0.2064, allocations: 59.41 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.2065, allocations: 262.6 kB / 413.2 MB, free: 22.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.2066, allocations: 25.7 kB / 413.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.537e-05/0.2066, allocations: 183.9 kB / 413.4 MB, free: 22.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.2067, allocations: 74.91 kB / 413.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.2067, allocations: 4 kB / 413.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.437e-05/0.2067, allocations: 334.8 kB / 413.8 MB, free: 21.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.2069, allocations: 84.42 kB / 413.9 MB, free: 21.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.2071, allocations: 113.8 kB / 414 MB, free: 21.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003117/0.2074, allocations: 198.5 kB / 414.2 MB, free: 21.4 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2074, allocations: 0 / 414.2 MB, free: 21.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005077/0.2079, allocations: 341.4 kB / 414.5 MB, free: 21.06 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2079, allocations: 8 kB / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.208, allocations: 0 / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002192/0.2082, allocations: 77.61 kB / 414.6 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.2084, allocations: 43.91 kB / 414.6 MB, free: 20.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.2097, allocations: 2.834 MB / 417.5 MB, free: 17.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001625/0.2099, allocations: 27.94 kB / 417.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.2099, allocations: 12 kB / 417.5 MB, free: 17.79 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.164e-05/0.21, allocations: 141.8 kB / 417.6 MB, free: 17.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.2101, allocations: 23.72 kB / 417.7 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.2101, allocations: 26.19 kB / 417.7 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.2101, allocations: 11.92 kB / 417.7 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2101, allocations: 3.938 kB / 417.7 MB, free: 17.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.2102, allocations: 8 kB / 417.7 MB, free: 17.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007368/0.2109, allocations: 0.6949 MB / 418.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2109, allocations: 192 / 418.4 MB, free: 16.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.211, allocations: 35.98 kB / 418.4 MB, free: 16.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/0.2112, allocations: 81.55 kB / 418.5 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.2112, allocations: 4 kB / 418.5 MB, free: 16.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/0.2125, allocations: 2.823 MB / 421.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2125, allocations: 0 / 421.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000473/0.213, allocations: 402.9 kB / 421.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.668e-05/0.213, allocations: 96.77 kB / 421.8 MB, free: 13.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.728e-05/0.2131, allocations: 8 kB / 421.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.2133, allocations: 39.97 kB / 421.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.2134, allocations: 19.91 kB / 421.9 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2134, allocations: 8 kB / 421.9 MB, free: 13 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001151/0.2135, allocations: 186 kB / 422.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2135, allocations: 0 / 422.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003373/0.2138, allocations: 91.84 kB / 422.2 MB, free: 12.73 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001003/0.214, allocations: 119.2 kB / 422.3 MB, free: 12.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000592/0.2146, allocations: 457.1 kB / 422.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2146, allocations: 0 / 422.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.2149, allocations: 365.3 kB / 423.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003698/0.2153, allocations: 49.38 kB / 423.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006378/0.2159, allocations: 0.6289 MB / 423.8 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.2161, allocations: 0.7678 MB / 424.6 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.948e-05/0.2162, allocations: 22.28 kB / 424.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.2162, allocations: 19.44 kB / 424.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of SimCode: time 7.11e-07/0.2162, allocations: 0 / 424.6 MB, free: 10.21 MB / 298.7 MB Notification: Performance of Templates: time 0.005436/0.2217, allocations: 3.428 MB / 428 MB, free: 6.793 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches