Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001028/0.001028, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.1 MB / 223.7 MB, free: 8.488 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009917/0.0009915, allocations: 108.1 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008827/0.0008828, allocations: 43.94 kB / 327.2 MB, free: 328 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1923, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.003427/0.1958, allocations: 3.006 MB / 376.8 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.1969, allocations: 0.717 MB / 377.5 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002116/0.1971, allocations: 9.438 kB / 377.6 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.1973, allocations: 40.22 kB / 377.6 MB, free: 42.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.1975, allocations: 94.69 kB / 377.7 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000217/0.1977, allocations: 81.05 kB / 377.8 MB, free: 42.65 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003565/0.1981, allocations: 393.9 kB / 378.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.1983, allocations: 92.95 kB / 378.2 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.1985, allocations: 135.4 kB / 378.4 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001557/0.1986, allocations: 155.4 kB / 378.5 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/0.1987, allocations: 24.94 kB / 378.5 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.68e-05/0.1987, allocations: 20.12 kB / 378.6 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.521e-05/0.1988, allocations: 63.48 kB / 378.6 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.1989, allocations: 161 kB / 378.8 MB, free: 42.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.1992, allocations: 369.5 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1992, allocations: 4 kB / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.1992, allocations: 0 / 379.1 MB, free: 41.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.1992, allocations: 0 / 379.1 MB, free: 41.77 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.0008269/0.2001, allocations: 0.6295 MB / 379.8 MB, free: 41.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.2001, allocations: 9.688 kB / 379.8 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.2002, allocations: 39.59 kB / 379.8 MB, free: 41.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002464/0.2004, allocations: 278.2 kB / 380.1 MB, free: 40.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.2005, allocations: 19.81 kB / 380.1 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.372e-05/0.2005, allocations: 30.16 kB / 380.1 MB, free: 40.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.2009, allocations: 267.8 kB / 380.4 MB, free: 40.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2009, allocations: 1.062 kB / 380.4 MB, free: 40.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.498e-05/0.201, allocations: 10.84 kB / 380.4 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.201, allocations: 10.95 kB / 380.4 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000441/0.2014, allocations: 213.8 kB / 380.6 MB, free: 40.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.2028, allocations: 0.9795 MB / 381.6 MB, free: 39.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.2032, allocations: 296 kB / 381.9 MB, free: 39.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001903/0.2034, allocations: 111.3 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.2035, allocations: 2.375 kB / 382 MB, free: 39.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.2035, allocations: 41.72 kB / 382.1 MB, free: 39.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.2035, allocations: 3.938 kB / 382.1 MB, free: 39.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.001106/0.2046, allocations: 0.5527 MB / 382.6 MB, free: 39.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.999e-05/0.2046, allocations: 53.88 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.2048, allocations: 263.2 kB / 382.9 MB, free: 38.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.624e-05/0.2049, allocations: 30.89 kB / 383 MB, free: 38.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.016e-05/0.2049, allocations: 184.2 kB / 383.1 MB, free: 38.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.946e-05/0.205, allocations: 70.95 kB / 383.2 MB, free: 38.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.35e-05/0.205, allocations: 45.36 kB / 383.2 MB, free: 38.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.789e-05/0.2051, allocations: 332.3 kB / 383.6 MB, free: 38.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.2053, allocations: 80.61 kB / 383.7 MB, free: 38.19 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.2055, allocations: 115.4 kB / 383.8 MB, free: 38.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.2058, allocations: 187.6 kB / 383.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2058, allocations: 0 / 383.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005573/0.2064, allocations: 322.1 kB / 384.3 MB, free: 37.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2064, allocations: 9.594 kB / 384.3 MB, free: 37.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.2064, allocations: 1.188 kB / 384.3 MB, free: 37.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002321/0.2067, allocations: 76.89 kB / 384.3 MB, free: 37.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.2069, allocations: 36.03 kB / 384.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.2083, allocations: 2.834 MB / 387.2 MB, free: 34.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.2085, allocations: 29.39 kB / 387.2 MB, free: 34.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.571e-05/0.2085, allocations: 5.438 kB / 387.3 MB, free: 34.9 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.594e-05/0.2086, allocations: 138.2 kB / 387.4 MB, free: 34.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.883e-05/0.2087, allocations: 25.03 kB / 387.4 MB, free: 34.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.768e-05/0.2087, allocations: 31.92 kB / 387.4 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2087, allocations: 6.031 kB / 387.4 MB, free: 34.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.2087, allocations: 10.06 kB / 387.5 MB, free: 34.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.2087, allocations: 0 / 387.5 MB, free: 34.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/0.2096, allocations: 0.6774 MB / 388.1 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.2096, allocations: 8.969 kB / 388.1 MB, free: 34.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.2097, allocations: 26.38 kB / 388.2 MB, free: 34.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001618/0.2099, allocations: 77.33 kB / 388.2 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.2099, allocations: 5.469 kB / 388.3 MB, free: 34.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.2112, allocations: 2.824 MB / 391.1 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2112, allocations: 1.938 kB / 391.1 MB, free: 31.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007315/0.212, allocations: 1.037 MB / 392.1 MB, free: 30.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/0.212, allocations: 108.7 kB / 392.2 MB, free: 30.08 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.212, allocations: 7.938 kB / 392.2 MB, free: 30.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.2123, allocations: 35.97 kB / 392.3 MB, free: 30.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.576e-05/0.2123, allocations: 19.97 kB / 392.3 MB, free: 30.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.2124, allocations: 4 kB / 392.3 MB, free: 30.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001156/0.2125, allocations: 186 kB / 392.5 MB, free: 29.83 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2125, allocations: 0 / 392.5 MB, free: 29.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004131/0.2129, allocations: 95.84 kB / 392.6 MB, free: 29.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 7.992e-05/0.213, allocations: 111.2 kB / 392.7 MB, free: 29.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005661/0.2136, allocations: 441.1 kB / 393.1 MB, free: 29.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2136, allocations: 4.125 kB / 393.1 MB, free: 29.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003072/0.2139, allocations: 345.2 kB / 393.4 MB, free: 28.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.2143, allocations: 44.55 kB / 393.5 MB, free: 28.75 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006994/0.215, allocations: 0.782 MB / 394.3 MB, free: 27.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.2151, allocations: 0.7716 MB / 395 MB, free: 27.13 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00011/0.2152, allocations: 26.28 kB / 395.1 MB, free: 27.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.141e-05/0.2153, allocations: 19.44 kB / 395.1 MB, free: 27.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2153, allocations: 0 / 395.1 MB, free: 27.09 MB / 298.7 MB Notification: Performance of Templates: time 0.005463/0.2208, allocations: 3.586 MB / 398.7 MB, free: 23.53 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches