Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001383, allocations: 202.8 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.5 MB / 245.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000764/0.000764, allocations: 110.9 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002018/0.0002018, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1786, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09291/0.2715, allocations: 83.62 MB / 492.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.2717, allocations: 84.61 kB / 492.4 MB, free: 7.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02513/0.2969, allocations: 9.946 MB / 0.4905 GB, free: 13.92 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2969, allocations: 3.938 kB / 0.4905 GB, free: 13.92 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.633e-05/0.2969, allocations: 16 kB / 0.4906 GB, free: 13.9 MB / 378.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.001344/0.2983, allocations: 0.8469 MB / 0.4914 GB, free: 13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.2983, allocations: 8.031 kB / 0.4914 GB, free: 12.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00028/0.2986, allocations: 96.08 kB / 0.4915 GB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005044/0.2991, allocations: 415.2 kB / 0.4919 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.756e-05/0.2992, allocations: 41.69 kB / 0.4919 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.171e-05/0.2993, allocations: 52.38 kB / 0.492 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009439/0.3002, allocations: 0.554 MB / 0.4925 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3002, allocations: 4.188 kB / 0.4925 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.195e-05/0.3003, allocations: 27.92 kB / 0.4925 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3003, allocations: 16 kB / 0.4926 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008434/0.3012, allocations: 429 kB / 0.493 GB, free: 11.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.304, allocations: 1.863 MB / 0.4948 GB, free: 9.375 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007746/0.3048, allocations: 0.5405 MB / 0.4953 GB, free: 8.793 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008932/0.3057, allocations: 413.2 kB / 0.4957 GB, free: 8.387 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.3058, allocations: 8.312 kB / 0.4957 GB, free: 8.379 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005075/0.3063, allocations: 314.1 kB / 0.496 GB, free: 8.035 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 1.923e-06/0.3063, allocations: 0 / 0.496 GB, free: 8.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.003351/0.3096, allocations: 1.263 MB / 0.4973 GB, free: 6.742 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.3098, allocations: 243.2 kB / 0.4975 GB, free: 6.449 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004788/0.3103, allocations: 425.9 kB / 0.4979 GB, free: 6.027 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.3103, allocations: 41.7 kB / 0.4979 GB, free: 5.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.3105, allocations: 308.1 kB / 0.4982 GB, free: 5.672 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.3106, allocations: 141.9 kB / 0.4984 GB, free: 5.531 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.3106, allocations: 8 kB / 0.4984 GB, free: 5.523 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.3108, allocations: 362.7 kB / 0.4987 GB, free: 5.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.3111, allocations: 161 kB / 0.4989 GB, free: 5.004 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004384/0.3116, allocations: 325.6 kB / 0.4992 GB, free: 4.613 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007272/0.3123, allocations: 459.2 kB / 0.4996 GB, free: 4.117 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3123, allocations: 0 / 0.4996 GB, free: 4.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0017/0.314, allocations: 0.7986 MB / 0.5004 GB, free: 3.309 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3141, allocations: 11.98 kB / 0.5004 GB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.3141, allocations: 4 kB / 0.5004 GB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006062/0.3147, allocations: 196.6 kB / 0.5006 GB, free: 3.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.315, allocations: 91.77 kB / 0.5007 GB, free: 3.008 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/0.3186, allocations: 2.598 MB / 0.5032 GB, free: 292 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004435/0.3191, allocations: 91.47 kB / 0.5033 GB, free: 200 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.327e-05/0.3191, allocations: 23.98 kB / 0.5033 GB, free: 176 kB / 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.1591/0.4782, allocations: 176.6 kB / 0.5035 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.4784, allocations: 50.75 kB / 0.5036 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001494/0.4785, allocations: 53.44 kB / 0.5036 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4785, allocations: 4.625 kB / 0.5036 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4786, allocations: 0.7188 kB / 0.5036 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4786, allocations: 2.297 kB / 0.5036 GB, free: 93.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002478/0.4811, allocations: 1.292 MB / 0.5049 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.4811, allocations: 0 / 0.5049 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.4813, allocations: 50.31 kB / 0.5049 GB, free: 92.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005983/0.4819, allocations: 203.2 kB / 0.5051 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.482, allocations: 10.44 kB / 0.5051 GB, free: 92.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003228/0.4852, allocations: 2.547 MB / 0.5076 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4852, allocations: 4.219 kB / 0.5076 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.487, allocations: 0.9587 MB / 0.5085 GB, free: 91.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000107/0.4872, allocations: 128.2 kB / 0.5087 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.028e-05/0.4872, allocations: 8.422 kB / 0.5087 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003626/0.4876, allocations: 53.03 kB / 0.5087 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.4877, allocations: 32.06 kB / 0.5088 GB, free: 91.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.338e-05/0.4877, allocations: 15.06 kB / 0.5088 GB, free: 91.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003743/0.4881, allocations: 296.3 kB / 0.5091 GB, free: 91.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4881, allocations: 1.312 kB / 0.5091 GB, free: 91.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007085/0.4888, allocations: 191.6 kB / 0.5092 GB, free: 91.17 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.0001805/0.489, allocations: 130.4 kB / 0.5094 GB, free: 91.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001239/0.4902, allocations: 0.5979 MB / 0.5099 GB, free: 90.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.4903, allocations: 3.562 kB / 0.51 GB, free: 90.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.4908, allocations: 390 kB / 0.5103 GB, free: 90.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.4913, allocations: 78.98 kB / 0.5104 GB, free: 90.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.4927, allocations: 1.158 MB / 0.5115 GB, free: 90.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.4929, allocations: 0.857 MB / 0.5124 GB, free: 89.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.73e-05/0.493, allocations: 37.48 kB / 0.5124 GB, free: 89.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.493, allocations: 0 / 0.5124 GB, free: 89.49 MB / 378.7 MB Notification: Performance of Templates: time 0.008043/0.501, allocations: 8.41 MB / 0.5206 GB, free: 88.22 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches