Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008081/0.0008081, allocations: 104.6 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.772e-05/1.774e-05, allocations: 11.98 kB / 343.7 MB, free: 8.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 51.48 MB / 395.2 MB, free: 4.746 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3129/0.4187, allocations: 82.92 MB / 478.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.419, allocations: 83.81 kB / 478.2 MB, free: 10.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02209/0.4411, allocations: 9.822 MB / 488 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4412, allocations: 0 / 488 MB, free: 2.086 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.371e-05/0.4412, allocations: 16 kB / 488 MB, free: 2.07 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001017/0.4422, allocations: 0.7901 MB / 488.8 MB, free: 1.277 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.4423, allocations: 8.031 kB / 488.8 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002509/0.4425, allocations: 104 kB / 488.9 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.443, allocations: 397.6 kB / 489.3 MB, free: 0.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.443, allocations: 16 kB / 489.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.427e-05/0.443, allocations: 35.19 kB / 489.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000498/0.4435, allocations: 342.1 kB / 489.7 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005841/0.4441, allocations: 433.7 kB / 490.1 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.4442, allocations: 0 / 490.1 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.906e-05/0.4442, allocations: 0 / 490.1 MB, free: 232 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.4442, allocations: 16 kB / 490.1 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.4468, allocations: 1.761 MB / 491.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005849/0.4474, allocations: 487.2 kB / 492.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005918/0.448, allocations: 314.2 kB / 492.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.4481, allocations: 12.31 kB / 492.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000335/0.4484, allocations: 250.8 kB / 492.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.463e-06/0.4484, allocations: 4 kB / 492.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001234/0.4497, allocations: 0.5484 MB / 493.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.4498, allocations: 235.3 kB / 493.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.4502, allocations: 336.7 kB / 494 MB, free: 12.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.4502, allocations: 32.69 kB / 494.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.4504, allocations: 315.4 kB / 494.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.4505, allocations: 139.3 kB / 494.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.939e-05/0.4505, allocations: 0 / 494.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4507, allocations: 355.4 kB / 494.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.4509, allocations: 115.1 kB / 495 MB, free: 12.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.4512, allocations: 270.8 kB / 495.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002186/0.4514, allocations: 157.3 kB / 495.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.4514, allocations: 4 kB / 495.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001501/0.4529, allocations: 0.6608 MB / 496.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.4529, allocations: 8.031 kB / 496.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.453, allocations: 4 kB / 496.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005001/0.4535, allocations: 161 kB / 496.2 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.4538, allocations: 87.83 kB / 496.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002748/0.4566, allocations: 2.296 MB / 498.6 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.457, allocations: 67.61 kB / 498.7 MB, free: 8.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/0.4571, allocations: 26.69 kB / 498.7 MB, free: 8.816 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real resistorGround.v:VARIABLE(unit = "V" ) "Voltage drop of the two pins (= p.v - n.v)" type: Real 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 () * 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 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.4573, allocations: 126.5 kB / 498.8 MB, free: 8.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.457e-05/0.4573, allocations: 47.44 kB / 498.9 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.634e-05/0.4575, allocations: 47.05 kB / 498.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.4575, allocations: 4 kB / 498.9 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.4575, allocations: 0 / 498.9 MB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.4575, allocations: 3.984 kB / 498.9 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.4592, allocations: 1.101 MB / 0.4883 GB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4593, allocations: 0 / 0.4883 GB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/0.4595, allocations: 43.97 kB / 0.4884 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003975/0.4599, allocations: 162.8 kB / 0.4885 GB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.4599, allocations: 7.938 kB / 0.4885 GB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002676/0.4626, allocations: 2.295 MB / 0.4908 GB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4626, allocations: 0 / 0.4908 GB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.464, allocations: 0.808 MB / 0.4915 GB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.4641, allocations: 124.4 kB / 0.4917 GB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.678e-05/0.4642, allocations: 5.781 kB / 0.4917 GB, free: 4.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.4646, allocations: 44.02 kB / 0.4917 GB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.408e-05/0.4646, allocations: 35.77 kB / 0.4917 GB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.4647, allocations: 11.75 kB / 0.4918 GB, free: 4.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002454/0.4649, allocations: 264.3 kB / 0.492 GB, free: 4.434 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4649, allocations: 0 / 0.492 GB, free: 4.434 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006736/0.4656, allocations: 171.4 kB / 0.4922 GB, free: 4.266 MB / 362.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) * 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.0002198/0.4658, allocations: 111.2 kB / 0.4923 GB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007849/0.4666, allocations: 0.4972 MB / 0.4928 GB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4667, allocations: 0 / 0.4928 GB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004365/0.4671, allocations: 332.9 kB / 0.4931 GB, free: 3.496 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.4675, allocations: 62.61 kB / 0.4931 GB, free: 3.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001089/0.4686, allocations: 0.6081 MB / 0.4937 GB, free: 2.895 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.469, allocations: 0.879 MB / 0.4946 GB, free: 1.988 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000238/0.4692, allocations: 44.36 kB / 0.4946 GB, free: 1.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.119e-05/0.4693, allocations: 35.42 kB / 0.4947 GB, free: 1.906 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4693, allocations: 3.938 kB / 0.4947 GB, free: 1.902 MB / 362.7 MB Notification: Performance of Templates: time 0.01111/0.4805, allocations: 5.958 MB / 0.5005 GB, free: 12.07 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches