Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002596/0.002596, allocations: 177.5 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.839/3.839, allocations: 205.4 MB / 223.6 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001951/0.001951, allocations: 81.42 kB / 271.9 MB, free: 8.277 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005533/0.0005538, allocations: 12 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6551/0.6557, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2199/0.8758, allocations: 79.21 MB / 454.9 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00039/0.8763, allocations: 71.97 kB / 455 MB, free: 1.355 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04117/0.9175, allocations: 8.387 MB / 463.4 MB, free: 8.941 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.392e-06/0.9176, allocations: 0 / 463.4 MB, free: 8.941 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.621e-05/0.9177, allocations: 8 kB / 463.4 MB, free: 8.934 MB / 346.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.002685/0.9204, allocations: 0.6703 MB / 464.1 MB, free: 8.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.411e-05/0.9205, allocations: 12.03 kB / 464.1 MB, free: 8.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003334/0.9209, allocations: 44.38 kB / 464.1 MB, free: 8.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000991/0.9219, allocations: 303.4 kB / 464.4 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-05/0.922, allocations: 29.03 kB / 464.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001745/0.9222, allocations: 36.28 kB / 464.5 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.9237, allocations: 354.3 kB / 464.8 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.396e-05/0.9237, allocations: 4.125 kB / 464.8 MB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.232e-05/0.9238, allocations: 15.94 kB / 464.9 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.9238, allocations: 8 kB / 464.9 MB, free: 7.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008539/0.9247, allocations: 250.5 kB / 465.1 MB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.929, allocations: 1.187 MB / 466.3 MB, free: 5.867 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.9305, allocations: 291.5 kB / 466.6 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007716/0.9313, allocations: 217.3 kB / 466.8 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001438/0.9327, allocations: 1.125 MB / 467.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.227e-05/0.9328, allocations: 38.8 kB / 468 MB, free: 3.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=27): time 7.434e-06/0.9328, allocations: 4 kB / 468 MB, free: 3.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=27): time 0.002687/0.9355, allocations: 0.5561 MB / 468.5 MB, free: 3.344 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.9356, allocations: 81.11 kB / 468.6 MB, free: 3.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007206/0.9364, allocations: 336.4 kB / 468.9 MB, free: 2.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.145e-05/0.9365, allocations: 33.7 kB / 469 MB, free: 2.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002644/0.9367, allocations: 212.1 kB / 469.2 MB, free: 2.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.9369, allocations: 102.5 kB / 469.3 MB, free: 2.559 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.9369, allocations: 8 kB / 469.3 MB, free: 2.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002909/0.9372, allocations: 346.7 kB / 469.6 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000421/0.9377, allocations: 116.7 kB / 469.7 MB, free: 2.086 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.9382, allocations: 185.8 kB / 469.9 MB, free: 1.875 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008905/0.9391, allocations: 311.7 kB / 470.2 MB, free: 1.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.9391, allocations: 0 / 470.2 MB, free: 1.543 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001571/0.9407, allocations: 449.3 kB / 470.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.9408, allocations: 6.188 kB / 470.7 MB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.9408, allocations: 4 kB / 470.7 MB, free: 1.086 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000546/0.9414, allocations: 60.81 kB / 470.7 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.9419, allocations: 83.89 kB / 470.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003115/0.9451, allocations: 1.752 MB / 472.6 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004807/0.9499, allocations: 39.62 kB / 472.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.324e-05/0.95, allocations: 19.94 kB / 472.6 MB, free: 15 MB / 362.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.0003818/0.9504, allocations: 161.7 kB / 472.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.9506, allocations: 39.53 kB / 472.8 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.9518, allocations: 354.7 kB / 473.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.9518, allocations: 0 / 473.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.9518, allocations: 192 / 473.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/0.9518, allocations: 3.984 kB / 473.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007759/0.9526, allocations: 397.2 kB / 473.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.9527, allocations: 3.984 kB / 473.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000456/0.9531, allocations: 59.89 kB / 473.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003641/0.9535, allocations: 68.75 kB / 473.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.446e-05/0.9536, allocations: 8 kB / 473.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007962/0.9544, allocations: 0.5992 MB / 474.3 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.9544, allocations: 3.938 kB / 474.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001524/0.9559, allocations: 0.5522 MB / 474.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.9561, allocations: 120.6 kB / 475 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.007e-05/0.9562, allocations: 8 kB / 475 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003475/0.9566, allocations: 27.98 kB / 475 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.34e-05/0.9567, allocations: 15.98 kB / 475 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.426e-05/0.9567, allocations: 11.98 kB / 475 MB, free: 12.44 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004027/0.9571, allocations: 231.1 kB / 475.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.9572, allocations: 0 / 475.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001327/0.9626, allocations: 107.8 kB / 475.3 MB, free: 12.11 MB / 362.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.0004897/0.9631, allocations: 135.1 kB / 475.5 MB, free: 11.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001822/0.965, allocations: 434.3 kB / 475.9 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.965, allocations: 0.5 kB / 475.9 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005846/0.9656, allocations: 143.9 kB / 476 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009069/0.9665, allocations: 45.86 kB / 476.1 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007075/0.9736, allocations: 1.072 MB / 477.2 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008091/0.9745, allocations: 0.7914 MB / 478 MB, free: 9.422 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.9748, allocations: 27.44 kB / 478 MB, free: 9.395 MB / 362.7 MB Notification: Performance of SimCode: time 1.723e-06/0.9749, allocations: 0 / 478 MB, free: 9.395 MB / 362.7 MB Notification: Performance of Templates: time 0.01526/0.9901, allocations: 5.35 MB / 483.3 MB, free: 4.059 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AmplifierWithOpAmpDetailed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AmplifierWithOpAmpDetailed/AmplifierWithOpAmpDetailed.csv","../files/Modelica_3.2.3_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