Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001769/0.001769, allocations: 175.7 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.3 MB / 241.4 MB, free: 9.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009026/0.0009026, allocations: 101.1 kB / 292.6 MB, free: 10.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.0004013, allocations: 20 kB / 352.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2714, allocations: 50.41 MB / 402.8 MB, free: 32.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1258/0.3973, allocations: 82.89 MB / 485.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.3976, allocations: 83.95 kB / 485.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02762/0.4252, allocations: 9.844 MB / 495.6 MB, free: 3.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 7.924e-06/0.4253, allocations: 0 / 495.6 MB, free: 3.406 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.386e-05/0.4254, allocations: 15.94 kB / 495.6 MB, free: 3.391 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002787/0.4282, allocations: 0.847 MB / 496.4 MB, free: 2.488 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.762e-05/0.4283, allocations: 15.95 kB / 496.5 MB, free: 2.473 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004248/0.4287, allocations: 68.19 kB / 496.5 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.4298, allocations: 411.1 kB / 496.9 MB, free: 1.965 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.691e-05/0.4299, allocations: 41.69 kB / 497 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.4301, allocations: 56.38 kB / 497 MB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001621/0.4317, allocations: 0.554 MB / 497.6 MB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.291e-05/0.4318, allocations: 192 / 497.6 MB, free: 1.305 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.577e-05/0.4319, allocations: 23.94 kB / 497.6 MB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.4319, allocations: 16 kB / 497.6 MB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.4332, allocations: 433 kB / 498 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004924/0.4381, allocations: 1.851 MB / 499.9 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.4393, allocations: 0.5372 MB / 0.4887 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.4405, allocations: 425.1 kB / 0.4891 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.377e-05/0.4405, allocations: 4.328 kB / 0.4891 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006998/0.4412, allocations: 310.1 kB / 0.4894 GB, free: 13.55 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 3.838e-06/0.4413, allocations: 0 / 0.4894 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.00404/0.4453, allocations: 1.259 MB / 0.4906 GB, free: 12.26 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000246/0.4456, allocations: 239.3 kB / 0.4909 GB, free: 11.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009434/0.4466, allocations: 425.9 kB / 0.4913 GB, free: 11.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.095e-05/0.4467, allocations: 37.7 kB / 0.4913 GB, free: 11.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005117/0.4472, allocations: 304.1 kB / 0.4916 GB, free: 11.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/0.4474, allocations: 149.9 kB / 0.4917 GB, free: 11.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.669e-05/0.4474, allocations: 8 kB / 0.4918 GB, free: 11.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002897/0.4477, allocations: 354.7 kB / 0.4921 GB, free: 10.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004242/0.4482, allocations: 157 kB / 0.4922 GB, free: 10.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006316/0.4488, allocations: 325.6 kB / 0.4925 GB, free: 10.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009668/0.4498, allocations: 459.5 kB / 0.493 GB, free: 9.656 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.4498, allocations: 0 / 0.493 GB, free: 9.656 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002277/0.4521, allocations: 0.7947 MB / 0.4938 GB, free: 8.852 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.4522, allocations: 4 kB / 0.4938 GB, free: 8.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.4522, allocations: 4 kB / 0.4938 GB, free: 8.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009098/0.4531, allocations: 203.3 kB / 0.494 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004105/0.4536, allocations: 95.77 kB / 0.4941 GB, free: 8.551 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005231/0.4588, allocations: 2.606 MB / 0.4966 GB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007178/0.4596, allocations: 91.47 kB / 0.4967 GB, free: 5.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.964e-05/0.4596, allocations: 16 kB / 0.4967 GB, free: 5.711 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 15} Notification: Performance of prepare postOptimizeDAE: time 0.000429/0.4601, allocations: 181.7 kB / 0.4969 GB, free: 5.523 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.4602, allocations: 51.44 kB / 0.4969 GB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.4604, allocations: 56.89 kB / 0.497 GB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.208e-05/0.4604, allocations: 8 kB / 0.497 GB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4604, allocations: 0 / 0.497 GB, free: 5.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.4604, allocations: 4 kB / 0.497 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002652/0.4631, allocations: 1.293 MB / 0.4983 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.4631, allocations: 0 / 0.4983 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.4634, allocations: 55.91 kB / 0.4983 GB, free: 4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005904/0.464, allocations: 200.6 kB / 0.4985 GB, free: 3.801 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.198e-05/0.464, allocations: 4 kB / 0.4985 GB, free: 3.797 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003913/0.468, allocations: 2.55 MB / 0.501 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.468, allocations: 0 / 0.501 GB, free: 1.109 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/0.4702, allocations: 0.9564 MB / 0.5019 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2678/0.738, allocations: 131 kB / 0.5021 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002881/0.7383, allocations: 7.312 kB / 0.5021 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004976/0.7388, allocations: 45.64 kB / 0.5021 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.739, allocations: 39.56 kB / 0.5021 GB, free: 97.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.32e-05/0.739, allocations: 11.61 kB / 0.5022 GB, free: 97.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000593/0.7396, allocations: 295.1 kB / 0.5024 GB, free: 97.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7396, allocations: 0.8125 kB / 0.5024 GB, free: 97.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000934/0.7406, allocations: 189.3 kB / 0.5026 GB, free: 97.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {3 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002456/0.7408, allocations: 119.8 kB / 0.5027 GB, free: 97.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.7424, allocations: 0.59 MB / 0.5033 GB, free: 97.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7424, allocations: 0 / 0.5033 GB, free: 97.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008483/0.7433, allocations: 403.4 kB / 0.5037 GB, free: 97.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006417/0.7439, allocations: 87.48 kB / 0.5038 GB, free: 97.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.7459, allocations: 1.114 MB / 0.5049 GB, free: 96.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.7463, allocations: 0.8622 MB / 0.5057 GB, free: 95.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000249/0.7466, allocations: 47.12 kB / 0.5057 GB, free: 95.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.273e-05/0.7467, allocations: 36.86 kB / 0.5058 GB, free: 95.84 MB / 378.7 MB Notification: Performance of SimCode: time 8.51e-07/0.7467, allocations: 0 / 0.5058 GB, free: 95.84 MB / 378.7 MB Notification: Performance of Templates: time 0.01207/0.7588, allocations: 6.725 MB / 0.5123 GB, free: 95.64 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches