Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.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.OpAmps.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Integrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|integrator.c.v|integrator.opAmp.out.v|integrator.opAmp.out.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001408, allocations: 195.4 kB / 18.06 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.234/1.234, allocations: 226.5 MB / 245.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007711/0.0007711, allocations: 101.2 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002076/0.0002077, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.1849, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08974/0.2746, allocations: 82.29 MB / 491 MB, free: 9.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.2749, allocations: 79.95 kB / 491 MB, free: 9.254 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01686/0.2918, allocations: 6.398 MB / 497.4 MB, free: 2.832 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2918, allocations: 0 / 497.4 MB, free: 2.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.2918, allocations: 4 kB / 497.4 MB, free: 2.828 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001044/0.2929, allocations: 0.6183 MB / 498.1 MB, free: 2.152 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.2929, allocations: 12.03 kB / 498.1 MB, free: 2.141 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.607e-05/0.293, allocations: 32.56 kB / 498.1 MB, free: 2.109 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.2933, allocations: 297.1 kB / 498.4 MB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.2934, allocations: 16.94 kB / 498.4 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.2934, allocations: 24.38 kB / 498.4 MB, free: 1.738 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.2941, allocations: 328.2 kB / 498.8 MB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.2941, allocations: 192 / 498.8 MB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.2941, allocations: 15.94 kB / 498.8 MB, free: 1.395 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.2942, allocations: 4 kB / 498.8 MB, free: 1.391 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007851/0.2949, allocations: 306 kB / 499.1 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.2969, allocations: 1.216 MB / 0.4886 GB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008511/0.2978, allocations: 274.6 kB / 0.4888 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.2981, allocations: 120.7 kB / 0.4889 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.2982, allocations: 0 / 0.4889 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004472/0.2986, allocations: 195.9 kB / 0.4891 GB, free: 15.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.2986, allocations: 3.938 kB / 0.4891 GB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.001964/0.3006, allocations: 0.6591 MB / 0.4898 GB, free: 14.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.3007, allocations: 85.09 kB / 0.4899 GB, free: 14.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.3009, allocations: 262.6 kB / 0.4901 GB, free: 14.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.301, allocations: 29.7 kB / 0.4901 GB, free: 14.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.3011, allocations: 195.5 kB / 0.4903 GB, free: 13.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.808e-05/0.3012, allocations: 47.47 kB / 0.4904 GB, free: 13.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.175e-05/0.3012, allocations: 4 kB / 0.4904 GB, free: 13.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3013, allocations: 334.8 kB / 0.4907 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003422/0.3016, allocations: 116.2 kB / 0.4908 GB, free: 13.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.302, allocations: 211.4 kB / 0.491 GB, free: 13.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000677/0.3027, allocations: 335.7 kB / 0.4913 GB, free: 12.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3027, allocations: 0 / 0.4913 GB, free: 12.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001137/0.3039, allocations: 479.7 kB / 0.4918 GB, free: 12.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.062e-05/0.304, allocations: 33.7 kB / 0.4918 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.304, allocations: 4 kB / 0.4918 GB, free: 12.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002966/0.3043, allocations: 76.8 kB / 0.4919 GB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.3045, allocations: 63.89 kB / 0.492 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.3064, allocations: 1.552 MB / 0.4935 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.3067, allocations: 59.81 kB / 0.4935 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.362e-05/0.3068, allocations: 15.98 kB / 0.4935 GB, free: 10.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001421/0.3069, allocations: 145.7 kB / 0.4937 GB, free: 10.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.307, allocations: 23.75 kB / 0.4937 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.607e-05/0.307, allocations: 25.7 kB / 0.4937 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.307, allocations: 0 / 0.4937 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.307, allocations: 4 kB / 0.4937 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.307, allocations: 4 kB / 0.4937 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.3073, allocations: 309.3 kB / 0.494 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3073, allocations: 0 / 0.494 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001947/0.3075, allocations: 43.89 kB / 0.4941 GB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002084/0.3078, allocations: 68.81 kB / 0.4941 GB, free: 9.676 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2e-05/0.3078, allocations: 7.984 kB / 0.4941 GB, free: 9.668 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001714/0.3095, allocations: 1.534 MB / 0.4956 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3095, allocations: 0 / 0.4956 GB, free: 8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001272/0.3108, allocations: 0.4971 MB / 0.4961 GB, free: 7.484 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.541e-05/0.3109, allocations: 100.8 kB / 0.4962 GB, free: 7.367 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.496e-05/0.3109, allocations: 8 kB / 0.4962 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002231/0.3112, allocations: 36.03 kB / 0.4963 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.3112, allocations: 27.84 kB / 0.4963 GB, free: 7.297 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.3113, allocations: 7.984 kB / 0.4963 GB, free: 7.289 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001786/0.3114, allocations: 186 kB / 0.4965 GB, free: 7.105 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3115, allocations: 4 kB / 0.4965 GB, free: 7.102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003314/0.3118, allocations: 79.78 kB / 0.4966 GB, free: 7.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.c.v) * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001571/0.312, allocations: 103.2 kB / 0.4967 GB, free: 6.914 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009194/0.3129, allocations: 433.9 kB / 0.4971 GB, free: 6.465 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3129, allocations: 0 / 0.4971 GB, free: 6.465 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004157/0.3133, allocations: 231.1 kB / 0.4973 GB, free: 6.227 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.3136, allocations: 42.16 kB / 0.4973 GB, free: 6.188 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003198/0.3168, allocations: 1.05 MB / 0.4984 GB, free: 5.102 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.3172, allocations: 0.7559 MB / 0.4991 GB, free: 4.32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.964e-05/0.3172, allocations: 19.44 kB / 0.4991 GB, free: 4.301 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.3172, allocations: 0 / 0.4991 GB, free: 4.301 MB / 378.7 MB Notification: Performance of Templates: time 0.144/0.4613, allocations: 4.506 MB / 0.5035 GB, free: 97 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Integrator/Integrator.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Integrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches