Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.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.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") translateModel(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed,tolerance=2e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|opAmp.q_fp1|opAmp.q_fr1|opAmp.q_fr2|opAmp.q_fr3|opAmp.v_in|opAmp.v_source|opAmp.x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008826/0.0008826, allocations: 199.7 kB / 18.07 MB, free: 3.625 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: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007187/0.0007187, allocations: 95.2 kB / 297.4 MB, free: 6.852 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002048/0.0002049, allocations: 4 kB / 357.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1832, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08727/0.2705, allocations: 81.64 MB / 490.3 MB, free: 9.926 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.2707, allocations: 71.95 kB / 490.4 MB, free: 9.855 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0234/0.2941, allocations: 8.78 MB / 499.2 MB, free: 1.047 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2941, allocations: 0 / 499.2 MB, free: 1.047 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.2942, allocations: 8 kB / 499.2 MB, free: 1.039 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009765/0.2951, allocations: 0.6702 MB / 499.8 MB, free: 324 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.2952, allocations: 12.03 kB / 499.8 MB, free: 312 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.2954, allocations: 60.36 kB / 499.9 MB, free: 252 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.2957, allocations: 303.4 kB / 0.4885 GB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.49e-05/0.2957, allocations: 25.03 kB / 0.4885 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.621e-05/0.2958, allocations: 36.28 kB / 0.4885 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.2964, allocations: 353.6 kB / 0.4889 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2964, allocations: 192 / 0.4889 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.69e-05/0.2964, allocations: 19.94 kB / 0.4889 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2965, allocations: 8 kB / 0.4889 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004671/0.2969, allocations: 234.5 kB / 0.4891 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.2987, allocations: 1.186 MB / 0.4903 GB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/0.2993, allocations: 291.5 kB / 0.4906 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004405/0.2998, allocations: 221.2 kB / 0.4908 GB, free: 13.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006699/0.3004, allocations: 1.132 MB / 0.4919 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.3005, allocations: 34.8 kB / 0.4919 GB, free: 12.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.543e-06/0.3005, allocations: 0 / 0.4919 GB, free: 12.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.00129/0.3018, allocations: 0.5522 MB / 0.4924 GB, free: 11.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.3018, allocations: 81.11 kB / 0.4925 GB, free: 11.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003276/0.3022, allocations: 332.5 kB / 0.4928 GB, free: 11.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.3022, allocations: 41.64 kB / 0.4929 GB, free: 10.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3023, allocations: 208.1 kB / 0.4931 GB, free: 10.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.833e-05/0.3024, allocations: 106.5 kB / 0.4932 GB, free: 10.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.794e-05/0.3024, allocations: 8 kB / 0.4932 GB, free: 10.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.3026, allocations: 350.7 kB / 0.4935 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.3028, allocations: 108.7 kB / 0.4936 GB, free: 10.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002717/0.3031, allocations: 193.5 kB / 0.4938 GB, free: 9.977 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004789/0.3036, allocations: 304 kB / 0.4941 GB, free: 9.652 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3036, allocations: 0 / 0.4941 GB, free: 9.652 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007617/0.3043, allocations: 441.1 kB / 0.4945 GB, free: 9.211 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3044, allocations: 8.25 kB / 0.4945 GB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3044, allocations: 4 kB / 0.4945 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002358/0.3046, allocations: 68.75 kB / 0.4946 GB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.3049, allocations: 79.89 kB / 0.4947 GB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001612/0.3066, allocations: 1.753 MB / 0.4964 GB, free: 7.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.3068, allocations: 47.55 kB / 0.4964 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.3069, allocations: 16 kB / 0.4964 GB, free: 7.102 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (37): * Single equations (assignments): 36 * 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: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001752/0.307, allocations: 157.6 kB / 0.4966 GB, free: 6.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.016e-05/0.3071, allocations: 35.53 kB / 0.4966 GB, free: 6.902 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007214/0.3078, allocations: 358.3 kB / 0.497 GB, free: 6.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3079, allocations: 8 kB / 0.497 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.3079, allocations: 0 / 0.497 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3079, allocations: 0 / 0.497 GB, free: 6.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000413/0.3083, allocations: 397.2 kB / 0.4974 GB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3083, allocations: 0 / 0.4974 GB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.3086, allocations: 59.89 kB / 0.4974 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001756/0.3088, allocations: 65.08 kB / 0.4975 GB, free: 5.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.19e-05/0.3089, allocations: 15.92 kB / 0.4975 GB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003647/0.3092, allocations: 0.6031 MB / 0.4981 GB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3092, allocations: 0 / 0.4981 GB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009232/0.3102, allocations: 0.556 MB / 0.4986 GB, free: 4.746 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.962e-05/0.3103, allocations: 120.6 kB / 0.4987 GB, free: 4.609 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.459e-05/0.3103, allocations: 4 kB / 0.4987 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.3106, allocations: 23.98 kB / 0.4988 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.905e-05/0.3106, allocations: 15.97 kB / 0.4988 GB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.3107, allocations: 12 kB / 0.4988 GB, free: 4.555 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000219/0.3109, allocations: 235 kB / 0.499 GB, free: 4.324 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3109, allocations: 0 / 0.499 GB, free: 4.324 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004418/0.3113, allocations: 111.8 kB / 0.4991 GB, free: 4.215 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (opAmp.v_in,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.q_fp1,opAmp.v_source,opAmp.x) * 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 (20): * Single equations (assignments): 19 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001926/0.3115, allocations: 128.8 kB / 0.4992 GB, free: 4.082 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000769/0.3123, allocations: 434.9 kB / 0.4997 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3123, allocations: 0 / 0.4997 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003333/0.3127, allocations: 148.3 kB / 0.4998 GB, free: 3.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.3131, allocations: 44.36 kB / 0.4998 GB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.3144, allocations: 1.087 MB / 0.5009 GB, free: 2.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.3147, allocations: 0.7836 MB / 0.5017 GB, free: 1.531 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.3148, allocations: 35.42 kB / 0.5017 GB, free: 1.496 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3149, allocations: 0 / 0.5017 GB, free: 1.496 MB / 378.7 MB Notification: Performance of Templates: time 0.1463/0.4612, allocations: 5.337 MB / 0.5069 GB, free: 95.84 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x Variables in the result:opAmp.q_fp1,opAmp.q_fr1,opAmp.q_fr2,opAmp.q_fr3,opAmp.v_in,opAmp.v_source,opAmp.x,time