Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 104.3 kB / 17.59 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002055/0.002055, allocations: 187.3 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001059, allocations: 48.05 kB / 301.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.09568, allocations: 49.46 MB / 350.7 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier): time 0.004538/0.1003, allocations: 2.921 MB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1017, allocations: 0.7324 MB / 354.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002509/0.102, allocations: 7.938 kB / 354.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001981/0.1022, allocations: 47.56 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002674/0.1025, allocations: 99.12 kB / 354.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003905/0.1029, allocations: 123.8 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005997/0.1035, allocations: 410.5 kB / 355.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003372/0.1039, allocations: 131.2 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003486/0.1042, allocations: 159.4 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.1045, allocations: 167.3 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.1046, allocations: 40 kB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.671e-05/0.1047, allocations: 47.94 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.959e-05/0.1048, allocations: 75.8 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002098/0.105, allocations: 175.1 kB / 355.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.1055, allocations: 454.7 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1055, allocations: 0 / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1055, allocations: 0 / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.1055, allocations: 0 / 356.3 MB, free: 14.83 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.001497/0.107, allocations: 0.6769 MB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1071, allocations: 15.89 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.326e-05/0.1072, allocations: 36.5 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004247/0.1076, allocations: 295.6 kB / 357.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.1076, allocations: 20.94 kB / 357.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.1077, allocations: 28.38 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/0.1084, allocations: 327.9 kB / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1084, allocations: 0 / 357.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.1085, allocations: 11.94 kB / 357.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1085, allocations: 8 kB / 357.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008133/0.1093, allocations: 282.1 kB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001904/0.1112, allocations: 1.158 MB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000833/0.1121, allocations: 254.5 kB / 359.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003321/0.1124, allocations: 104.8 kB / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.701e-05/0.1124, allocations: 0 / 359.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005165/0.113, allocations: 183.6 kB / 359.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.212e-06/0.113, allocations: 0 / 359.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002397/0.1154, allocations: 0.6702 MB / 360.3 MB, free: 10.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.1155, allocations: 106.8 kB / 360.4 MB, free: 10.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.1158, allocations: 286.6 kB / 360.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.1158, allocations: 37.7 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.116, allocations: 199.5 kB / 360.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.116, allocations: 47.44 kB / 361 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.822e-05/0.1161, allocations: 49.84 kB / 361 MB, free: 9.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.1162, allocations: 338.8 kB / 361.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003575/0.1166, allocations: 108.1 kB / 361.5 MB, free: 9.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004118/0.117, allocations: 213.8 kB / 361.7 MB, free: 9.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007231/0.1178, allocations: 316.6 kB / 362 MB, free: 8.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1178, allocations: 0 / 362 MB, free: 8.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001293/0.1191, allocations: 483.6 kB / 362.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.1191, allocations: 29.7 kB / 362.5 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1191, allocations: 4 kB / 362.5 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003994/0.1196, allocations: 92.84 kB / 362.6 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.1198, allocations: 47.91 kB / 362.6 MB, free: 8.062 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003005/0.1228, allocations: 2.06 MB / 364.7 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.1231, allocations: 55.81 kB / 364.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.1232, allocations: 12 kB / 364.8 MB, free: 5.797 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.0001716/0.1234, allocations: 161.9 kB / 364.9 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.3e-05/0.1234, allocations: 23.72 kB / 364.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.125e-05/0.1235, allocations: 25.78 kB / 365 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1235, allocations: 7.984 kB / 365 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.1235, allocations: 0 / 365 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1235, allocations: 0 / 365 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003017/0.1238, allocations: 329.2 kB / 365.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1238, allocations: 0 / 365.3 MB, free: 5.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.124, allocations: 23.97 kB / 365.3 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002843/0.1243, allocations: 92.77 kB / 365.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1243, allocations: 0 / 365.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002499/0.1268, allocations: 1.986 MB / 367.4 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1268, allocations: 0 / 367.4 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.1279, allocations: 365.4 kB / 367.8 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.105e-05/0.128, allocations: 108.8 kB / 367.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.1281, allocations: 0 / 367.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.1283, allocations: 39.89 kB / 367.9 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.399e-05/0.1284, allocations: 15.98 kB / 367.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.1284, allocations: 4 kB / 367.9 MB, free: 2.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000207/0.1286, allocations: 202 kB / 368.1 MB, free: 2.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1286, allocations: 0 / 368.1 MB, free: 2.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004412/0.1291, allocations: 83.78 kB / 368.2 MB, free: 2.121 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.000138/0.1292, allocations: 110.4 kB / 368.3 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.1306, allocations: 0.4979 MB / 368.8 MB, free: 1.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1306, allocations: 0 / 368.8 MB, free: 1.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004788/0.1311, allocations: 234.6 kB / 369 MB, free: 1.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.1315, allocations: 51.73 kB / 369.1 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003146/0.1346, allocations: 0.9545 MB / 370 MB, free: 204 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1469/0.2816, allocations: 0.7554 MB / 370.8 MB, free: 24.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2817, allocations: 21.47 kB / 370.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2817, allocations: 3.031 kB / 370.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of Templates: time 0.008209/0.2899, allocations: 4.764 MB / 375.6 MB, free: 24.68 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/NonInvertingAmplifier/NonInvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.NonInvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches