Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.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.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|gain.opAmp.out.v|gain.opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008939/0.0008939, allocations: 88.52 kB / 17.3 MB, free: 6.355 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.0009649/0.0009649, allocations: 182.3 kB / 18.22 MB, free: 5.523 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.277/1.277, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002394/0.0002395, allocations: 14.19 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07576/0.07601, allocations: 50.4 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier): time 0.002748/0.07879, allocations: 2.615 MB / 355.1 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.07995, allocations: 0.713 MB / 355.8 MB, free: 120 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.08013, allocations: 7.938 kB / 355.8 MB, free: 112 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.08027, allocations: 39.69 kB / 355.9 MB, free: 72 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002092/0.08048, allocations: 79.39 kB / 356 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002624/0.08076, allocations: 99.91 kB / 356.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003596/0.08113, allocations: 390.4 kB / 356.4 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.08134, allocations: 111.8 kB / 356.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.08151, allocations: 127.4 kB / 356.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001865/0.0817, allocations: 147.3 kB / 356.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.753e-05/0.08176, allocations: 23.98 kB / 356.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.285e-05/0.08181, allocations: 16 kB / 356.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.317e-05/0.08187, allocations: 55.77 kB / 356.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.08202, allocations: 180.8 kB / 357.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.08231, allocations: 347.2 kB / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.08232, allocations: 0 / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.08233, allocations: 0 / 357.4 MB, free: 14.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.08234, allocations: 0 / 357.4 MB, free: 14.51 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.001159/0.0835, allocations: 0.6381 MB / 358.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.08354, allocations: 12.03 kB / 358.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.652e-05/0.08363, allocations: 36.56 kB / 358.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003182/0.08395, allocations: 299.5 kB / 358.4 MB, free: 13.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.08399, allocations: 20.94 kB / 358.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.331e-05/0.08403, allocations: 28.31 kB / 358.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007375/0.08478, allocations: 343.9 kB / 358.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.0848, allocations: 0 / 358.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.08484, allocations: 12 kB / 358.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.08485, allocations: 4 kB / 358.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008746/0.08573, allocations: 314.1 kB / 359.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.08759, allocations: 1.178 MB / 360.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008995/0.0885, allocations: 286.5 kB / 360.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003661/0.08888, allocations: 120.8 kB / 360.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.08891, allocations: 4 kB / 360.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005029/0.08942, allocations: 201.2 kB / 360.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.08944, allocations: 4 kB / 360.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002473/0.09192, allocations: 0.7332 MB / 361.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.09198, allocations: 106.8 kB / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/0.09227, allocations: 290.5 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.0923, allocations: 29.7 kB / 362 MB, free: 9.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.09243, allocations: 199.6 kB / 362.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.507e-05/0.09247, allocations: 35.45 kB / 362.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.09252, allocations: 29.7 kB / 362.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.71e-05/0.09263, allocations: 334.8 kB / 362.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.09302, allocations: 124.3 kB / 362.7 MB, free: 8.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.09347, allocations: 229.7 kB / 363 MB, free: 8.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007806/0.09426, allocations: 339.7 kB / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.09427, allocations: 0 / 363.3 MB, free: 8.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.00135/0.09563, allocations: 0.4986 MB / 363.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.09567, allocations: 37.69 kB / 363.8 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.09569, allocations: 3.938 kB / 363.8 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003632/0.09605, allocations: 92.86 kB / 363.9 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002275/0.09629, allocations: 55.91 kB / 364 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002434/0.09874, allocations: 1.838 MB / 365.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.0991, allocations: 59.88 kB / 365.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.364e-05/0.09914, allocations: 12 kB / 365.9 MB, free: 5.492 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 21 * 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.0001442/0.09929, allocations: 153.6 kB / 366 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.652e-05/0.09933, allocations: 23.72 kB / 366.1 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.103e-05/0.09939, allocations: 25.84 kB / 366.1 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.0994, allocations: 3.984 kB / 366.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.0994, allocations: 0 / 366.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.09941, allocations: 4 kB / 366.1 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.09969, allocations: 329.3 kB / 366.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.0997, allocations: 0 / 366.4 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.09986, allocations: 32.03 kB / 366.4 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002919/0.1002, allocations: 88.8 kB / 366.5 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1002, allocations: 8 kB / 366.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002165/0.1024, allocations: 1.711 MB / 368.3 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1024, allocations: 0 / 368.3 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.1035, allocations: 409.4 kB / 368.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.289e-05/0.1036, allocations: 100.8 kB / 368.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.1037, allocations: 11.98 kB / 368.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002781/0.104, allocations: 31.97 kB / 368.8 MB, free: 2.352 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.104, allocations: 31.97 kB / 368.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.1041, allocations: 0 / 368.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.1042, allocations: 202 kB / 369 MB, free: 2.125 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1043, allocations: 0 / 369 MB, free: 2.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003707/0.1046, allocations: 79.84 kB / 369.1 MB, free: 2.047 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.0001047/0.1047, allocations: 99.19 kB / 369.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1058, allocations: 473.8 kB / 369.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1058, allocations: 0 / 369.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004994/0.1063, allocations: 254.9 kB / 369.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.1066, allocations: 63.53 kB / 370 MB, free: 1.133 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009822/0.1076, allocations: 0.6251 MB / 370.6 MB, free: 480 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1299/0.2375, allocations: 0.7519 MB / 371.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.2377, allocations: 25.62 kB / 371.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2377, allocations: 0 / 371.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of Templates: time 0.007806/0.2455, allocations: 4.704 MB / 376.1 MB, free: 23.79 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmplifier/InvertingAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches