Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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.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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001845/0.001845, allocations: 109.7 kB / 17.16 MB, free: 6.328 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.00217/0.00217, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.985/1.985, allocations: 222.9 MB / 241.7 MB, free: 15.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001714/0.001715, allocations: 47.53 kB / 300.6 MB, free: 6.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1599, allocations: 49.45 MB / 350.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.008732/0.1687, allocations: 3.036 MB / 353.1 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002496/0.1712, allocations: 0.6856 MB / 353.8 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004901/0.1718, allocations: 4 kB / 353.8 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003837/0.1722, allocations: 43.69 kB / 353.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005422/0.1728, allocations: 91.23 kB / 353.9 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004992/0.1733, allocations: 75.92 kB / 354 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008877/0.1743, allocations: 394.2 kB / 354.4 MB, free: 484 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00038/0.1747, allocations: 95.66 kB / 354.5 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004772/0.1752, allocations: 135.4 kB / 354.6 MB, free: 248 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003718/0.1756, allocations: 155.3 kB / 354.8 MB, free: 92 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.1757, allocations: 24 kB / 354.8 MB, free: 68 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.1759, allocations: 20 kB / 354.8 MB, free: 48 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.176, allocations: 55.84 kB / 354.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000345/0.1764, allocations: 167.1 kB / 355 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004766/0.1769, allocations: 283.5 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.1769, allocations: 4 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1769, allocations: 4 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.177, allocations: 0 / 355.3 MB, free: 15.54 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002013/0.179, allocations: 0.6275 MB / 355.9 MB, free: 14.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.218e-05/0.1791, allocations: 8.031 kB / 355.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001729/0.1793, allocations: 36.56 kB / 356 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00062/0.1799, allocations: 279.5 kB / 356.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.1799, allocations: 20.94 kB / 356.3 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.849e-05/0.18, allocations: 28.36 kB / 356.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.1811, allocations: 261.2 kB / 356.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.1811, allocations: 0 / 356.5 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.05e-05/0.1812, allocations: 16 kB / 356.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.1812, allocations: 4 kB / 356.6 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009431/0.1822, allocations: 218.1 kB / 356.8 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003154/0.1854, allocations: 0.9794 MB / 357.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/0.1864, allocations: 295.8 kB / 358 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004202/0.1868, allocations: 112.2 kB / 358.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.753e-05/0.1869, allocations: 11.98 kB / 358.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.498e-05/0.1869, allocations: 34.56 kB / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 6.001e-06/0.187, allocations: 0 / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.002533/0.1895, allocations: 0.563 MB / 358.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.1896, allocations: 51.41 kB / 358.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005514/0.1902, allocations: 258.6 kB / 359.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.1902, allocations: 33.7 kB / 359.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.1905, allocations: 179.9 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.977e-05/0.1906, allocations: 66.92 kB / 359.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/0.1908, allocations: 49.94 kB / 359.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002421/0.191, allocations: 330.8 kB / 359.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.1914, allocations: 76.42 kB / 359.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004134/0.1919, allocations: 107.5 kB / 359.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007404/0.1926, allocations: 186.5 kB / 360.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.1926, allocations: 0 / 360.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001305/0.194, allocations: 334.7 kB / 360.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.194, allocations: 4 kB / 360.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.194, allocations: 4 kB / 360.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005086/0.1946, allocations: 65.67 kB / 360.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003954/0.195, allocations: 39.91 kB / 360.5 MB, free: 9.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/0.1991, allocations: 2.839 MB / 363.3 MB, free: 6.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.1995, allocations: 27.86 kB / 363.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.1996, allocations: 4 kB / 363.4 MB, free: 6.859 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 (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 0.0003095/0.1999, allocations: 141.8 kB / 363.5 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2, allocations: 23.72 kB / 363.5 MB, free: 6.688 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.785e-05/0.2001, allocations: 34.17 kB / 363.6 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.2002, allocations: 0 / 363.6 MB, free: 6.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.946e-05/0.2002, allocations: 7.938 kB / 363.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.2002, allocations: 0 / 363.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.2025, allocations: 0.6909 MB / 364.3 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.2026, allocations: 0 / 364.3 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002434/0.2028, allocations: 23.92 kB / 364.3 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.2033, allocations: 85.59 kB / 364.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.2033, allocations: 0 / 364.4 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003866/0.2072, allocations: 2.831 MB / 367.2 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2072, allocations: 4.125 kB / 367.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.2085, allocations: 382.3 kB / 367.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.2087, allocations: 112.7 kB / 367.7 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/0.2088, allocations: 4 kB / 367.7 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005308/0.2093, allocations: 27.98 kB / 367.7 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.2095, allocations: 23.91 kB / 367.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.113e-05/0.2095, allocations: 4 kB / 367.8 MB, free: 2.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003866/0.2099, allocations: 194 kB / 367.9 MB, free: 1.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.2099, allocations: 0 / 367.9 MB, free: 1.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008403/0.2108, allocations: 95.75 kB / 368 MB, free: 1.816 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 (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.0002529/0.2111, allocations: 107.2 kB / 368.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.2126, allocations: 445.2 kB / 368.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.2126, allocations: 0 / 368.6 MB, free: 1.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009229/0.2135, allocations: 351 kB / 368.9 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000934/0.2145, allocations: 56.45 kB / 369 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.2164, allocations: 0.627 MB / 369.6 MB, free: 164 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2999/0.5163, allocations: 0.7655 MB / 370.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001629/0.5165, allocations: 19.66 kB / 370.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of SimCode: time 1.923e-06/0.5165, allocations: 1.094 kB / 370.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of Templates: time 0.01606/0.5326, allocations: 5.595 MB / 376 MB, free: 24.48 MB / 302.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches