Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00147/0.001469, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.942/1.942, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001171/0.001171, allocations: 91.55 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003773/0.0003776, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3319, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.4543, allocations: 77.45 MB / 452 MB, free: 3.316 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4546, allocations: 71.95 kB / 452.1 MB, free: 3.246 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02048/0.4752, allocations: 4.942 MB / 457 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4752, allocations: 4 kB / 457 MB, free: 14.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.474e-05/0.4752, allocations: 8 kB / 457 MB, free: 14.28 MB / 346.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.001289/0.4765, allocations: 0.5923 MB / 457.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.4766, allocations: 8.031 kB / 457.6 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.4767, allocations: 39.62 kB / 457.6 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.4771, allocations: 270.5 kB / 457.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.267e-05/0.4772, allocations: 20.56 kB / 457.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/0.4773, allocations: 27.95 kB / 458 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008008/0.4781, allocations: 264.9 kB / 458.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.4781, allocations: 0 / 458.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.821e-05/0.4782, allocations: 15.94 kB / 458.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.4782, allocations: 4 kB / 458.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008571/0.479, allocations: 230.1 kB / 458.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002567/0.4816, allocations: 0.9963 MB / 459.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007542/0.4824, allocations: 229.1 kB / 459.7 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.81e-05/0.4825, allocations: 4.188 kB / 459.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.4825, allocations: 42.73 kB / 459.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.096e-06/0.4825, allocations: 4 kB / 459.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.002062/0.4846, allocations: 0.5822 MB / 460.3 MB, free: 10.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.4847, allocations: 51.41 kB / 460.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.4851, allocations: 237.7 kB / 460.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.4851, allocations: 25.7 kB / 460.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.4853, allocations: 246.3 kB / 460.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.403e-05/0.4854, allocations: 63.02 kB / 460.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.4854, allocations: 4 kB / 460.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4855, allocations: 322.8 kB / 461.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.4859, allocations: 84.42 kB / 461.3 MB, free: 9.695 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003849/0.4863, allocations: 115.4 kB / 461.4 MB, free: 9.574 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003702/0.4867, allocations: 94.39 kB / 461.5 MB, free: 9.484 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4867, allocations: 0 / 461.5 MB, free: 9.484 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001086/0.4878, allocations: 338.8 kB / 461.9 MB, free: 9.141 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.4878, allocations: 4 kB / 461.9 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.4878, allocations: 0 / 461.9 MB, free: 9.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004047/0.4882, allocations: 73.67 kB / 461.9 MB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003743/0.4886, allocations: 47.97 kB / 462 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003073/0.4917, allocations: 2.843 MB / 464.8 MB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003817/0.4921, allocations: 39.83 kB / 464.9 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.4922, allocations: 8 kB / 464.9 MB, free: 5.848 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000229/0.4924, allocations: 141.7 kB / 465 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.4925, allocations: 23.72 kB / 465 MB, free: 5.676 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.932e-05/0.4926, allocations: 34.17 kB / 465.1 MB, free: 5.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4926, allocations: 4 kB / 465.1 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.4926, allocations: 4 kB / 465.1 MB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.4926, allocations: 3.984 kB / 465.1 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005316/0.4932, allocations: 329.4 kB / 465.4 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.4932, allocations: 7.938 kB / 465.4 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.4935, allocations: 27.92 kB / 465.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000323/0.4938, allocations: 77.61 kB / 465.5 MB, free: 5.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.4938, allocations: 4 kB / 465.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002954/0.4968, allocations: 2.855 MB / 468.4 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4968, allocations: 3.938 kB / 468.4 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.4979, allocations: 396.8 kB / 468.8 MB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.4981, allocations: 108.8 kB / 468.9 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.841e-05/0.4981, allocations: 4 kB / 468.9 MB, free: 1.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.4986, allocations: 39.97 kB / 468.9 MB, free: 1.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.375e-05/0.4987, allocations: 19.92 kB / 468.9 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.269e-05/0.4987, allocations: 4 kB / 468.9 MB, free: 1.418 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002797/0.499, allocations: 190 kB / 469.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.499, allocations: 0 / 469.1 MB, free: 1.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000532/0.4996, allocations: 95.75 kB / 469.2 MB, free: 1.141 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001567/0.4997, allocations: 111.2 kB / 469.3 MB, free: 1.02 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.5009, allocations: 457.7 kB / 469.8 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/0.5009, allocations: 8 kB / 469.8 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006905/0.5016, allocations: 362.1 kB / 470.1 MB, free: 164 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.5021, allocations: 49.03 kB / 470.2 MB, free: 112 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.5034, allocations: 0.6166 MB / 470.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.5038, allocations: 0.7755 MB / 471.6 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.5039, allocations: 19.44 kB / 471.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5039, allocations: 0 / 471.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of Templates: time 0.01076/0.5147, allocations: 5.409 MB / 477 MB, free: 9.238 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches