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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001848/0.001848, allocations: 196.4 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.236/1.236, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001012, allocations: 93.3 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 7.605e-06/7.625e-06, allocations: 0 / 343.1 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1111, allocations: 51.48 MB / 394.6 MB, free: 5.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2407/0.3519, allocations: 82.84 MB / 477.5 MB, free: 10.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.3521, allocations: 81.11 kB / 477.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02266/0.3748, allocations: 9.611 MB / 487.2 MB, free: 2.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.65e-05/0.3749, allocations: 16.94 kB / 487.2 MB, free: 2.355 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.001083/0.376, allocations: 0.7993 MB / 488 MB, free: 1.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.376, allocations: 12.03 kB / 488 MB, free: 1.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003116/0.3763, allocations: 99.12 kB / 488.1 MB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004734/0.3768, allocations: 395.5 kB / 488.5 MB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.3769, allocations: 23.98 kB / 488.5 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.227e-05/0.3769, allocations: 35.91 kB / 488.5 MB, free: 1.012 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005242/0.3775, allocations: 335.2 kB / 488.9 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000606/0.3781, allocations: 440.9 kB / 489.3 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3781, allocations: 0 / 489.3 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.107e-05/0.3781, allocations: 7.094 kB / 489.3 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.3782, allocations: 12 kB / 489.3 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002659/0.3808, allocations: 1.76 MB / 491.1 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005208/0.3814, allocations: 299.1 kB / 491.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.3817, allocations: 234.6 kB / 491.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.454e-05/0.3818, allocations: 8.016 kB / 491.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003094/0.3821, allocations: 239.4 kB / 491.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.974e-06/0.3821, allocations: 0 / 491.8 MB, free: 14.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=41): time 0.001173/0.3833, allocations: 0.5007 MB / 492.3 MB, free: 13.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.3834, allocations: 247.3 kB / 492.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003637/0.3838, allocations: 333.3 kB / 492.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.3838, allocations: 29.7 kB / 492.9 MB, free: 13.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.384, allocations: 262.4 kB / 493.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.767e-05/0.3841, allocations: 132.3 kB / 493.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.3841, allocations: 0 / 493.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.3842, allocations: 357.4 kB / 493.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.3844, allocations: 106.9 kB / 493.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.3847, allocations: 273.3 kB / 494 MB, free: 12.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.3849, allocations: 150.9 kB / 494.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.3849, allocations: 0 / 494.2 MB, free: 12.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001283/0.3862, allocations: 0.6198 MB / 494.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3862, allocations: 4 kB / 494.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3863, allocations: 4 kB / 494.8 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004017/0.3867, allocations: 124 kB / 494.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.387, allocations: 91.27 kB / 495 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003066/0.3901, allocations: 2.235 MB / 497.3 MB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.3906, allocations: 75.64 kB / 497.3 MB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.228e-05/0.3907, allocations: 19.69 kB / 497.4 MB, free: 9.395 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.in_n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" 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 (47): * Single equations (assignments): 46 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001799/0.3908, allocations: 132.9 kB / 497.5 MB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.41e-05/0.3909, allocations: 47.44 kB / 497.5 MB, free: 9.215 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.498e-05/0.391, allocations: 46.11 kB / 497.6 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.391, allocations: 4 kB / 497.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.391, allocations: 1.25 kB / 497.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.391, allocations: 7.984 kB / 497.6 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.3927, allocations: 1.047 MB / 498.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3927, allocations: 0 / 498.6 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.393, allocations: 50.91 kB / 498.7 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002916/0.3933, allocations: 119.3 kB / 498.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.139e-05/0.3933, allocations: 3.5 kB / 498.8 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/0.3961, allocations: 2.227 MB / 0.4893 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.3961, allocations: 0 / 0.4893 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00139/0.3975, allocations: 0.7621 MB / 0.49 GB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.791e-05/0.3976, allocations: 128.9 kB / 0.4902 GB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.852e-05/0.3977, allocations: 0.6875 kB / 0.4902 GB, free: 5.324 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003666/0.3981, allocations: 48.02 kB / 0.4902 GB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.554e-05/0.3982, allocations: 18.84 kB / 0.4902 GB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.3982, allocations: 10.81 kB / 0.4902 GB, free: 5.254 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002763/0.3985, allocations: 259.8 kB / 0.4905 GB, free: 5.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005938/0.3991, allocations: 168.8 kB / 0.4906 GB, free: 4.902 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 (26): * Single equations (assignments): 24 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.000199/0.3993, allocations: 119.2 kB / 0.4907 GB, free: 4.777 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.4004, allocations: 0.5305 MB / 0.4913 GB, free: 4.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4004, allocations: 0 / 0.4913 GB, free: 4.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007583/0.4012, allocations: 383.3 kB / 0.4916 GB, free: 4.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.4015, allocations: 55.53 kB / 0.4917 GB, free: 3.973 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/0.4029, allocations: 0.6008 MB / 0.4923 GB, free: 3.414 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005238/0.4035, allocations: 0.9035 MB / 0.4932 GB, free: 2.484 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4035, allocations: 0 / 0.4932 GB, free: 2.484 MB / 362.7 MB Notification: Performance of Templates: time 0.0113/0.4148, allocations: 6.02 MB / 0.499 GB, free: 12.59 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