Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001502/0.001503, allocations: 198.8 kB / 18.07 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 226.5 MB / 245.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007533/0.0007534, allocations: 90.72 kB / 297.4 MB, free: 6.719 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002089/0.0002089, allocations: 8 kB / 357.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1783, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08512/0.2635, allocations: 79.56 MB / 488.2 MB, free: 12.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002018/0.2637, allocations: 67.97 kB / 488.3 MB, free: 12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01328/0.277, allocations: 5.243 MB / 493.5 MB, free: 6.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.277, allocations: 4 kB / 493.5 MB, free: 6.742 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.277, allocations: 8 kB / 493.5 MB, free: 6.734 MB / 362.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.0008064/0.2778, allocations: 0.5925 MB / 494.1 MB, free: 6.086 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.2779, allocations: 8.031 kB / 494.1 MB, free: 6.078 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.2781, allocations: 48.55 kB / 494.2 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.2783, allocations: 279.8 kB / 494.5 MB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.2784, allocations: 20.94 kB / 494.5 MB, free: 5.699 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.226e-05/0.2784, allocations: 28.38 kB / 494.5 MB, free: 5.672 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.2789, allocations: 265.4 kB / 494.8 MB, free: 5.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.2789, allocations: 192 / 494.8 MB, free: 5.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.047e-05/0.279, allocations: 15.94 kB / 494.8 MB, free: 5.395 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.279, allocations: 4 kB / 494.8 MB, free: 5.391 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004747/0.2795, allocations: 234.1 kB / 495 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.281, allocations: 0.9987 MB / 496 MB, free: 4.094 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.2815, allocations: 226.6 kB / 496.2 MB, free: 3.863 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002662/0.2817, allocations: 132.2 kB / 496.4 MB, free: 3.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.2818, allocations: 4 kB / 496.4 MB, free: 3.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.2818, allocations: 30.56 kB / 496.4 MB, free: 3.691 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.2818, allocations: 0 / 496.4 MB, free: 3.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001237/0.2831, allocations: 0.5833 MB / 497 MB, free: 3.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.366e-05/0.2831, allocations: 63.33 kB / 497 MB, free: 2.984 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002396/0.2833, allocations: 254.6 kB / 497.3 MB, free: 2.727 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.2834, allocations: 33.64 kB / 497.3 MB, free: 2.688 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2835, allocations: 191.9 kB / 497.5 MB, free: 2.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.869e-05/0.2835, allocations: 70.91 kB / 497.6 MB, free: 2.422 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.2836, allocations: 4 kB / 497.6 MB, free: 2.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.2837, allocations: 334.8 kB / 497.9 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002006/0.2839, allocations: 80.42 kB / 498 MB, free: 2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.2841, allocations: 119.4 kB / 498.1 MB, free: 1.875 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003778/0.2845, allocations: 198.4 kB / 498.3 MB, free: 1.672 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2845, allocations: 0 / 498.3 MB, free: 1.672 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006231/0.2851, allocations: 334.8 kB / 498.6 MB, free: 1.332 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.2851, allocations: 11.88 kB / 498.6 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2852, allocations: 0 / 498.6 MB, free: 1.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002599/0.2854, allocations: 77.73 kB / 498.7 MB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.2857, allocations: 43.91 kB / 498.8 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002049/0.2877, allocations: 2.835 MB / 0.4898 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001979/0.2879, allocations: 27.78 kB / 0.4899 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.88e-05/0.288, allocations: 11.98 kB / 0.4899 GB, free: 14.05 MB / 378.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.0001473/0.2881, allocations: 141.8 kB / 0.49 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.178e-05/0.2882, allocations: 27.72 kB / 0.49 GB, free: 13.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.2882, allocations: 30.17 kB / 0.4901 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.2882, allocations: 4 kB / 0.4901 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.2882, allocations: 0 / 0.4901 GB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2882, allocations: 3.938 kB / 0.4901 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009764/0.2892, allocations: 0.691 MB / 0.4908 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2892, allocations: 4 kB / 0.4908 GB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.2894, allocations: 31.98 kB / 0.4908 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002018/0.2896, allocations: 73.86 kB / 0.4909 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.2896, allocations: 7.938 kB / 0.4909 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.293, allocations: 2.828 MB / 0.4936 GB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.293, allocations: 0 / 0.4936 GB, free: 9.879 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2942, allocations: 403.2 kB / 0.494 GB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.2944, allocations: 104.8 kB / 0.4941 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/0.2944, allocations: 7.938 kB / 0.4941 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004894/0.2949, allocations: 35.97 kB / 0.4942 GB, free: 9.301 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/0.295, allocations: 23.97 kB / 0.4942 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-05/0.2951, allocations: 4 kB / 0.4942 GB, free: 9.273 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003163/0.2954, allocations: 197.8 kB / 0.4944 GB, free: 9.082 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2954, allocations: 0 / 0.4944 GB, free: 9.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006895/0.2961, allocations: 91.84 kB / 0.4945 GB, free: 8.992 MB / 378.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.0001924/0.2964, allocations: 107.2 kB / 0.4946 GB, free: 8.879 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001308/0.2977, allocations: 457.4 kB / 0.495 GB, free: 8.406 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2977, allocations: 0 / 0.495 GB, free: 8.406 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007592/0.2985, allocations: 361.2 kB / 0.4953 GB, free: 8.027 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007007/0.2992, allocations: 58.95 kB / 0.4954 GB, free: 7.973 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.3006, allocations: 0.6225 MB / 0.496 GB, free: 7.312 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.3011, allocations: 0.7716 MB / 0.4968 GB, free: 6.516 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.3012, allocations: 19.44 kB / 0.4968 GB, free: 6.496 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3012, allocations: 0 / 0.4968 GB, free: 6.496 MB / 378.7 MB Notification: Performance of Templates: time 0.01279/0.314, allocations: 5.556 MB / 0.5022 GB, free: 0.957 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches