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.001504/0.001504, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.121/2.121, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.00108/0.001079, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.348e-05/3.364e-05, allocations: 8 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09419/0.09425, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4047/0.4991, allocations: 79.07 MB / 448.2 MB, free: 14.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4994, allocations: 73.91 kB / 448.2 MB, free: 14.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04004/0.5394, allocations: 8.38 MB / 456.6 MB, free: 7.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.599e-06/0.5395, allocations: 0 / 456.6 MB, free: 7.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.5395, allocations: 11.94 kB / 456.6 MB, free: 7.02 MB / 330.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.001599/0.5412, allocations: 0.6186 MB / 457.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/0.5412, allocations: 12.03 kB / 457.3 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.5414, allocations: 47.44 kB / 457.3 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005533/0.542, allocations: 297.9 kB / 457.6 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.565e-05/0.542, allocations: 22.72 kB / 457.6 MB, free: 6.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.687e-05/0.5421, allocations: 40.41 kB / 457.7 MB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008509/0.543, allocations: 319.7 kB / 458 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.543, allocations: 0 / 458 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.373e-05/0.5431, allocations: 14.88 kB / 458 MB, free: 5.746 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.5431, allocations: 11.98 kB / 458 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006108/0.5438, allocations: 218.2 kB / 458.2 MB, free: 5.594 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.5468, allocations: 1.18 MB / 459.4 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006947/0.5476, allocations: 252.5 kB / 459.6 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006202/0.5482, allocations: 197.3 kB / 459.8 MB, free: 4.266 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001034/0.5492, allocations: 1.124 MB / 461 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.5493, allocations: 33.55 kB / 461 MB, free: 2.848 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 3.086e-06/0.5493, allocations: 4 kB / 461 MB, free: 2.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.001005/0.5503, allocations: 287.2 kB / 461.3 MB, free: 2.566 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/0.5504, allocations: 85.09 kB / 461.4 MB, free: 2.465 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005127/0.5509, allocations: 294.8 kB / 461.6 MB, free: 2.176 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.695e-05/0.551, allocations: 33.7 kB / 461.7 MB, free: 2.137 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001904/0.5512, allocations: 262.5 kB / 461.9 MB, free: 1.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.5513, allocations: 106.6 kB / 462 MB, free: 1.773 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.5514, allocations: 11.94 kB / 462 MB, free: 1.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.5515, allocations: 326.8 kB / 462.4 MB, free: 1.434 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/0.5518, allocations: 92.75 kB / 462.5 MB, free: 1.34 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003438/0.5522, allocations: 165.8 kB / 462.6 MB, free: 1.148 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003379/0.5525, allocations: 112 kB / 462.7 MB, free: 1.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.5525, allocations: 4 kB / 462.7 MB, free: 1.035 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001146/0.5537, allocations: 373.8 kB / 463.1 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.5537, allocations: 8 kB / 463.1 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.5538, allocations: 256 / 463.1 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003927/0.5542, allocations: 68.83 kB / 463.2 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/0.5548, allocations: 75.89 kB / 463.2 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002504/0.5573, allocations: 1.76 MB / 465 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005097/0.5579, allocations: 43.73 kB / 465 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/0.5579, allocations: 12 kB / 465.1 MB, free: 14.55 MB / 346.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 () * 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.0001594/0.5581, allocations: 124.9 kB / 465.2 MB, free: 14.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.643e-05/0.5582, allocations: 43.47 kB / 465.2 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009179/0.5591, allocations: 314.8 kB / 465.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.5592, allocations: 0 / 465.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.5592, allocations: 4 kB / 465.5 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.5592, allocations: 4.125 kB / 465.5 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006695/0.5599, allocations: 389.2 kB / 465.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.5599, allocations: 3.938 kB / 465.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006454/0.5606, allocations: 63.95 kB / 466 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003168/0.5609, allocations: 60.81 kB / 466 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.5609, allocations: 4 kB / 466 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006087/0.5616, allocations: 0.603 MB / 466.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.5616, allocations: 0 / 466.7 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.5627, allocations: 0.4927 MB / 467.1 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.5629, allocations: 116.6 kB / 467.3 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.169e-05/0.563, allocations: 8 kB / 467.3 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.5636, allocations: 27.98 kB / 467.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.5636, allocations: 15.97 kB / 467.3 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.5637, allocations: 8 kB / 467.3 MB, free: 12.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003909/0.5641, allocations: 230.2 kB / 467.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5641, allocations: 0 / 467.5 MB, free: 11.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006743/0.5648, allocations: 111.8 kB / 467.6 MB, free: 11.82 MB / 346.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 () * 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.0003452/0.5652, allocations: 139.2 kB / 467.8 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.5662, allocations: 386.8 kB / 468.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5663, allocations: 0 / 468.2 MB, free: 11.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004314/0.5667, allocations: 123.9 kB / 468.3 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.5672, allocations: 45.61 kB / 468.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.5688, allocations: 0.7143 MB / 469 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/0.5693, allocations: 0.7955 MB / 469.8 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.5695, allocations: 27.42 kB / 469.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5695, allocations: 0 / 469.9 MB, free: 9.523 MB / 346.7 MB Notification: Performance of Templates: time 0.0122/0.5817, allocations: 5.226 MB / 475.1 MB, free: 4.301 MB / 346.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) Reference file matches