Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|buffer.opAmp.out.v|buffer.opAmp.out.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001296, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001326/0.001327, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.512/1.512, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 65.39 kB / 307.9 MB, free: 480 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09932, allocations: 50.54 MB / 358.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004529/0.1039, allocations: 2.938 MB / 361.4 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00143/0.1054, allocations: 0.7674 MB / 362.2 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.1055, allocations: 7.938 kB / 362.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001583/0.1057, allocations: 47.5 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.1059, allocations: 103.1 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003764/0.1063, allocations: 119.8 kB / 362.4 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004614/0.1068, allocations: 414.5 kB / 362.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.107, allocations: 123.2 kB / 363 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.1072, allocations: 159.4 kB / 363.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002327/0.1075, allocations: 171.2 kB / 363.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.41e-05/0.1076, allocations: 40 kB / 363.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.891e-05/0.1076, allocations: 40 kB / 363.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.388e-05/0.1077, allocations: 83.73 kB / 363.4 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.1079, allocations: 179.2 kB / 363.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.1084, allocations: 446.8 kB / 364 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1084, allocations: 0 / 364 MB, free: 8.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1084, allocations: 0 / 364 MB, free: 8.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.1084, allocations: 0 / 364 MB, free: 8.285 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001396/0.1098, allocations: 0.6834 MB / 364.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1098, allocations: 8.031 kB / 364.7 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.648e-05/0.1099, allocations: 36.5 kB / 364.8 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.1103, allocations: 295.6 kB / 365.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.1104, allocations: 20.94 kB / 365.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.404e-05/0.1104, allocations: 24.38 kB / 365.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007585/0.1112, allocations: 335.9 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/0.1112, allocations: 0 / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.299e-05/0.1112, allocations: 8 kB / 365.4 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.1113, allocations: 8 kB / 365.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008824/0.1121, allocations: 286.1 kB / 365.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.1142, allocations: 1.154 MB / 366.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009108/0.1151, allocations: 250.5 kB / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003875/0.1155, allocations: 108.8 kB / 367.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.1156, allocations: 0 / 367.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005776/0.1162, allocations: 181.8 kB / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.1162, allocations: 0 / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.00258/0.1188, allocations: 0.6667 MB / 368.1 MB, free: 4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.1189, allocations: 106.8 kB / 368.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003843/0.1192, allocations: 286.6 kB / 368.5 MB, free: 3.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.1193, allocations: 29.7 kB / 368.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002053/0.1195, allocations: 207.5 kB / 368.7 MB, free: 3.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.993e-05/0.1196, allocations: 39.45 kB / 368.7 MB, free: 3.301 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.1197, allocations: 53.84 kB / 368.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.1199, allocations: 334.8 kB / 369.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003942/0.1203, allocations: 108.1 kB / 369.2 MB, free: 2.797 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/0.1208, allocations: 215.1 kB / 369.4 MB, free: 2.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008203/0.1216, allocations: 327 kB / 369.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1216, allocations: 3.938 kB / 369.8 MB, free: 2.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001419/0.123, allocations: 471.7 kB / 370.2 MB, free: 1.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.065e-05/0.1231, allocations: 37.7 kB / 370.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.1231, allocations: 4 kB / 370.3 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004422/0.1236, allocations: 88.86 kB / 370.3 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000234/0.1238, allocations: 55.89 kB / 370.4 MB, free: 1.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1619/0.2858, allocations: 2.059 MB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.2862, allocations: 51.11 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.2862, allocations: 13.73 kB / 372.5 MB, free: 18.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001506/0.2864, allocations: 153.2 kB / 372.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.455e-05/0.2864, allocations: 33.66 kB / 372.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.04e-05/0.2865, allocations: 25.11 kB / 372.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2865, allocations: 2.375 kB / 372.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.2865, allocations: 0.6562 kB / 372.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.2865, allocations: 2.156 kB / 372.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.2868, allocations: 330 kB / 373.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2868, allocations: 0 / 373.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001426/0.287, allocations: 23.14 kB / 373.1 MB, free: 18.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003117/0.2873, allocations: 84.91 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.2873, allocations: 6.234 kB / 373.2 MB, free: 18.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002191/0.2895, allocations: 1.975 MB / 375.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2895, allocations: 2.188 kB / 375.1 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.2906, allocations: 373.1 kB / 375.5 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.037e-05/0.2907, allocations: 101.5 kB / 375.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.86e-05/0.2907, allocations: 1.875 kB / 375.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/0.291, allocations: 38.39 kB / 375.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.537e-05/0.2911, allocations: 16.97 kB / 375.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.2911, allocations: 8.266 kB / 375.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002068/0.2913, allocations: 204.3 kB / 375.9 MB, free: 16.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2913, allocations: 0 / 375.9 MB, free: 16.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004534/0.2918, allocations: 80.58 kB / 375.9 MB, free: 16.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001331/0.2919, allocations: 110.3 kB / 376.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.2933, allocations: 0.4928 MB / 376.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2933, allocations: 3.812 kB / 376.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005098/0.2938, allocations: 233.3 kB / 376.8 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003403/0.2942, allocations: 56.42 kB / 376.8 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003241/0.2974, allocations: 0.9651 MB / 377.8 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.2977, allocations: 0.7538 MB / 378.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.125e-05/0.2977, allocations: 21.89 kB / 378.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2977, allocations: 0 / 378.6 MB, free: 15.47 MB / 302.1 MB Notification: Performance of Templates: time 0.008017/0.3058, allocations: 4.766 MB / 383.3 MB, free: 14.92 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches