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.001171/0.001171, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007749/0.000775, allocations: 98.5 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002089/0.0002089, allocations: 11.98 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2038/0.204, allocations: 51.29 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed): time 0.002198/0.2063, allocations: 2.756 MB / 410.3 MB, free: 25.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.2074, allocations: 0.939 MB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2075, allocations: 10.25 kB / 411.2 MB, free: 24.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.2076, allocations: 47.61 kB / 411.2 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.2079, allocations: 99.22 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.2081, allocations: 111.5 kB / 411.5 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.2084, allocations: 446 kB / 411.9 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001586/0.2085, allocations: 96.52 kB / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.2087, allocations: 163.4 kB / 412.1 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.2089, allocations: 179.2 kB / 412.3 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.87e-05/0.2089, allocations: 24 kB / 412.3 MB, free: 22.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.2091, allocations: 55.97 kB / 412.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.963e-05/0.2091, allocations: 71.61 kB / 412.5 MB, free: 22.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.748e-05/0.2092, allocations: 97.52 kB / 412.6 MB, free: 22.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.2094, allocations: 367.9 kB / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2094, allocations: 4 kB / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.2094, allocations: 0 / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2094, allocations: 3.938 kB / 412.9 MB, free: 22.38 MB / 298.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.0009743/0.2104, allocations: 0.6779 MB / 413.6 MB, free: 21.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.2104, allocations: 8.031 kB / 413.6 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001574/0.2106, allocations: 63.42 kB / 413.7 MB, free: 21.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.2109, allocations: 290.3 kB / 414 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.2109, allocations: 28.64 kB / 414 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.877e-05/0.2109, allocations: 35.98 kB / 414 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/0.2115, allocations: 353 kB / 414.4 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.2115, allocations: 4 kB / 414.4 MB, free: 20.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.2115, allocations: 16 kB / 414.4 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2115, allocations: 8 kB / 414.4 MB, free: 20.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.2119, allocations: 238.5 kB / 414.6 MB, free: 20.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.2134, allocations: 1.186 MB / 415.8 MB, free: 19.3 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005425/0.214, allocations: 291.6 kB / 416.1 MB, free: 19.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004287/0.2144, allocations: 214 kB / 416.3 MB, free: 18.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004772/0.2149, allocations: 1.129 MB / 417.4 MB, free: 17.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.2149, allocations: 38.8 kB / 417.5 MB, free: 17.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 2.314e-06/0.215, allocations: 0 / 417.5 MB, free: 17.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.001163/0.2161, allocations: 0.5444 MB / 418 MB, free: 16.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.281e-05/0.2162, allocations: 85.11 kB / 418.1 MB, free: 16.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.2164, allocations: 324.6 kB / 418.4 MB, free: 16.37 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.2164, allocations: 33.69 kB / 418.5 MB, free: 16.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.48e-05/0.2165, allocations: 212.1 kB / 418.7 MB, free: 16.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.316e-05/0.2166, allocations: 98.55 kB / 418.8 MB, free: 16.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.2166, allocations: 12 kB / 418.8 MB, free: 16.01 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.99e-05/0.2167, allocations: 342.8 kB / 419.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.2169, allocations: 112.7 kB / 419.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.2171, allocations: 201.4 kB / 419.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002139/0.2173, allocations: 124 kB / 419.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2173, allocations: 0 / 419.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006314/0.218, allocations: 437.5 kB / 420 MB, free: 14.77 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.218, allocations: 11.95 kB / 420 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.218, allocations: 3.938 kB / 420 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002457/0.2182, allocations: 68.81 kB / 420 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.2185, allocations: 79.89 kB / 420.1 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.2197, allocations: 1.768 MB / 421.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.22, allocations: 43.64 kB / 421.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.22, allocations: 20 kB / 421.9 MB, free: 12.64 MB / 298.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.000122/0.2201, allocations: 149.7 kB / 422.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.985e-05/0.2202, allocations: 35.62 kB / 422.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005801/0.2208, allocations: 343.5 kB / 422.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/0.2208, allocations: 4 kB / 422.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.2208, allocations: 0 / 422.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2208, allocations: 3.984 kB / 422.5 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003083/0.2211, allocations: 393.2 kB / 422.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2211, allocations: 0 / 422.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.2214, allocations: 64.14 kB / 422.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.2216, allocations: 52.83 kB / 423 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.2216, allocations: 23.8 kB / 423 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002481/0.2219, allocations: 0.5992 MB / 423.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2219, allocations: 4.062 kB / 423.6 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000778/0.2227, allocations: 0.5405 MB / 424.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.536e-05/0.2228, allocations: 120.5 kB / 424.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.2228, allocations: 8 kB / 424.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.2231, allocations: 23.98 kB / 424.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.04e-05/0.2231, allocations: 19.97 kB / 424.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.744e-05/0.2232, allocations: 8 kB / 424.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001722/0.2233, allocations: 231.1 kB / 424.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2233, allocations: 0 / 424.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003722/0.2237, allocations: 115.8 kB / 424.7 MB, free: 9.801 MB / 298.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.0001793/0.2239, allocations: 127.2 kB / 424.8 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006571/0.2246, allocations: 422.2 kB / 425.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2246, allocations: 4.5 kB / 425.2 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002955/0.2249, allocations: 147.8 kB / 425.3 MB, free: 9.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000345/0.2252, allocations: 47.89 kB / 425.4 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.2263, allocations: 1.08 MB / 426.5 MB, free: 7.934 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.2265, allocations: 0.7991 MB / 427.3 MB, free: 7.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.849e-05/0.2266, allocations: 27.42 kB / 427.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2266, allocations: 0 / 427.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of Templates: time 0.005371/0.232, allocations: 5.354 MB / 432.6 MB, free: 1.75 MB / 298.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/jenkins/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) Reference file matches