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.002247/0.002247, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001075/0.001075, allocations: 87.23 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.57e-05/2.59e-05, allocations: 4 kB / 314.8 MB, free: 9.168 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3349, allocations: 47.57 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1244/0.4594, allocations: 76.71 MB / 439 MB, free: 9.609 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.4597, allocations: 70.81 kB / 439.1 MB, free: 9.543 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02209/0.4818, allocations: 4.889 MB / 444 MB, free: 4.676 MB / 331.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.4819, allocations: 0 / 444 MB, free: 4.676 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.601e-05/0.4819, allocations: 5.75 kB / 444 MB, free: 4.672 MB / 331.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.001283/0.4832, allocations: 0.5677 MB / 444.6 MB, free: 4.062 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4833, allocations: 8.031 kB / 444.6 MB, free: 4.055 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.4834, allocations: 39.53 kB / 444.6 MB, free: 4.016 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.4839, allocations: 269.3 kB / 444.9 MB, free: 3.715 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.484, allocations: 8 kB / 444.9 MB, free: 3.707 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.062e-05/0.484, allocations: 19.95 kB / 444.9 MB, free: 3.688 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005884/0.4846, allocations: 162.3 kB / 445.1 MB, free: 3.527 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.4852, allocations: 199.7 kB / 445.3 MB, free: 3.324 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.4852, allocations: 0 / 445.3 MB, free: 3.324 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.4853, allocations: 0.6875 kB / 445.3 MB, free: 3.324 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.4853, allocations: 8 kB / 445.3 MB, free: 3.316 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002645/0.488, allocations: 0.9207 MB / 446.2 MB, free: 2.336 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006363/0.4887, allocations: 191.1 kB / 446.4 MB, free: 2.141 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003008/0.489, allocations: 103 kB / 446.5 MB, free: 2.039 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.489, allocations: 4.125 kB / 446.5 MB, free: 2.035 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.4891, allocations: 38.75 kB / 446.5 MB, free: 1.988 MB / 331.1 MB Notification: Performance of pre-optimization done (n=21): time 3.196e-06/0.4891, allocations: 0 / 446.5 MB, free: 1.988 MB / 331.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007945/0.4899, allocations: 222.6 kB / 446.7 MB, free: 1.762 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.49, allocations: 59.41 kB / 446.8 MB, free: 1.691 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000343/0.4903, allocations: 208.4 kB / 447 MB, free: 1.484 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.769e-05/0.4904, allocations: 25.7 kB / 447 MB, free: 1.453 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.4905, allocations: 242.4 kB / 447.3 MB, free: 1.215 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.715e-05/0.4906, allocations: 70.91 kB / 447.3 MB, free: 1.145 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/0.4907, allocations: 0 / 447.3 MB, free: 1.145 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4908, allocations: 322.8 kB / 447.6 MB, free: 0.8203 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.491, allocations: 54.25 kB / 447.7 MB, free: 0.7656 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.4912, allocations: 80.22 kB / 447.8 MB, free: 0.6797 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.4914, allocations: 64.62 kB / 447.8 MB, free: 0.6172 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.4915, allocations: 0 / 447.8 MB, free: 0.6172 MB / 331.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007844/0.4923, allocations: 244.5 kB / 448.1 MB, free: 376 kB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/0.4923, allocations: 12.64 kB / 448.1 MB, free: 364 kB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.4923, allocations: 4 kB / 448.1 MB, free: 360 kB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.4928, allocations: 69.62 kB / 448.2 MB, free: 284 kB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003881/0.4932, allocations: 39.97 kB / 448.2 MB, free: 244 kB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003259/0.4965, allocations: 2.718 MB / 450.9 MB, free: 13.3 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.4969, allocations: 19.88 kB / 450.9 MB, free: 13.28 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.8e-05/0.4969, allocations: 12.06 kB / 450.9 MB, free: 13.27 MB / 347.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 () * 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.0001423/0.4971, allocations: 108.9 kB / 451.1 MB, free: 13.16 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/0.4972, allocations: 23.72 kB / 451.1 MB, free: 13.13 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.97e-05/0.4973, allocations: 33.91 kB / 451.1 MB, free: 13.1 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.4973, allocations: 0 / 451.1 MB, free: 13.1 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.4973, allocations: 4 kB / 451.1 MB, free: 13.1 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.4973, allocations: 3.984 kB / 451.1 MB, free: 13.09 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.4986, allocations: 0.5823 MB / 451.7 MB, free: 12.46 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4986, allocations: 2.531 kB / 451.7 MB, free: 12.46 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002584/0.4989, allocations: 23.98 kB / 451.7 MB, free: 12.44 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000338/0.4992, allocations: 82 kB / 451.8 MB, free: 12.35 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.4993, allocations: 4 kB / 451.8 MB, free: 12.35 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003095/0.5024, allocations: 2.708 MB / 454.5 MB, free: 9.406 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.5024, allocations: 0 / 454.5 MB, free: 9.406 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007655/0.5032, allocations: 322.9 kB / 454.8 MB, free: 9.07 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.5033, allocations: 108.8 kB / 454.9 MB, free: 8.945 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.243e-05/0.5034, allocations: 8.016 kB / 454.9 MB, free: 8.938 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.5038, allocations: 31.97 kB / 455 MB, free: 8.906 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.805e-05/0.504, allocations: 19.97 kB / 455 MB, free: 8.887 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.446e-05/0.504, allocations: 12 kB / 455 MB, free: 8.875 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002482/0.5043, allocations: 160.5 kB / 455.2 MB, free: 8.715 MB / 347.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5043, allocations: 0 / 455.2 MB, free: 8.715 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005623/0.5048, allocations: 83.78 kB / 455.2 MB, free: 8.633 MB / 347.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 () * 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.0001696/0.505, allocations: 99.25 kB / 455.3 MB, free: 8.527 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008314/0.5059, allocations: 383.3 kB / 455.7 MB, free: 8.133 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 6.111e-06/0.5059, allocations: 4 kB / 455.7 MB, free: 8.129 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005099/0.5064, allocations: 311.3 kB / 456 MB, free: 7.805 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004127/0.5068, allocations: 33.75 kB / 456.1 MB, free: 7.773 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000895/0.5077, allocations: 322.2 kB / 456.4 MB, free: 7.434 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004673/0.5082, allocations: 0.7717 MB / 457.1 MB, free: 6.633 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.5084, allocations: 18.25 kB / 457.2 MB, free: 6.617 MB / 347.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5084, allocations: 0 / 457.2 MB, free: 6.617 MB / 347.1 MB Notification: Performance of Templates: time 0.01155/0.5199, allocations: 5.215 MB / 462.4 MB, free: 1.434 MB / 347.1 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