Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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 trunk/package.mo", uses=false) 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) 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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001791/0.001792, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002222/0.002222, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.605/1.605, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 72.02 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3906/0.3921, allocations: 50.53 MB / 409.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.006238/0.3984, allocations: 3.387 MB / 412.7 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.4006, allocations: 0.861 MB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.4009, allocations: 8 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002572/0.4012, allocations: 63.36 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002525/0.4014, allocations: 123 kB / 413.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004689/0.4019, allocations: 155.7 kB / 413.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000519/0.4024, allocations: 498 kB / 414.4 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003332/0.4028, allocations: 177 kB / 414.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003072/0.4031, allocations: 187.3 kB / 414.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002568/0.4034, allocations: 211.1 kB / 414.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.501e-05/0.4034, allocations: 48 kB / 415 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.4036, allocations: 56 kB / 415 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001389/0.4037, allocations: 91.69 kB / 415.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003004/0.404, allocations: 222.9 kB / 415.3 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007011/0.4047, allocations: 0.568 MB / 415.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.4047, allocations: 0 / 415.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4047, allocations: 0 / 415.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.4048, allocations: 0 / 415.9 MB, free: 10.95 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001334/0.4061, allocations: 0.7131 MB / 416.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4062, allocations: 8.031 kB / 416.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003311/0.4065, allocations: 60.64 kB / 416.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005612/0.4071, allocations: 328.8 kB / 417 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.783e-05/0.4071, allocations: 29.31 kB / 417 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.459e-05/0.4072, allocations: 36.12 kB / 417.1 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007359/0.4079, allocations: 390.2 kB / 417.4 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.4079, allocations: 4 kB / 417.4 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.408, allocations: 12 kB / 417.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.408, allocations: 8 kB / 417.5 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006314/0.4086, allocations: 303.8 kB / 417.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.411, allocations: 1.436 MB / 419.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.4116, allocations: 238.7 kB / 419.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.4118, allocations: 96.81 kB / 419.5 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.4119, allocations: 4 kB / 419.5 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.4119, allocations: 34.55 kB / 419.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 2.134e-06/0.4119, allocations: 0 / 419.6 MB, free: 7.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002315/0.4142, allocations: 0.755 MB / 420.3 MB, free: 6.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.4143, allocations: 63.39 kB / 420.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003897/0.4147, allocations: 316.5 kB / 420.7 MB, free: 5.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.4148, allocations: 29.7 kB / 420.7 MB, free: 5.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.4149, allocations: 228.2 kB / 420.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.4151, allocations: 63.47 kB / 421 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-05/0.4152, allocations: 53.64 kB / 421.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.4154, allocations: 338.8 kB / 421.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.4156, allocations: 83.95 kB / 421.5 MB, free: 5.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.4158, allocations: 161.4 kB / 421.6 MB, free: 4.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004591/0.4163, allocations: 251.6 kB / 421.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4163, allocations: 0 / 421.9 MB, free: 4.594 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001007/0.4173, allocations: 422.9 kB / 422.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.4174, allocations: 11.98 kB / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.4174, allocations: 0 / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004883/0.4179, allocations: 117.7 kB / 422.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.4181, allocations: 39.92 kB / 422.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.4226, allocations: 3.561 MB / 426 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.423, allocations: 39.84 kB / 426 MB, free: 120 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.423, allocations: 15.98 kB / 426.1 MB, free: 104 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002355/0.4232, allocations: 157.8 kB / 426.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.743e-05/0.4233, allocations: 31.75 kB / 426.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.933e-05/0.4234, allocations: 30.27 kB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.4234, allocations: 4 kB / 426.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.4234, allocations: 0 / 426.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.4234, allocations: 4 kB / 426.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004031/0.4238, allocations: 373.3 kB / 426.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4238, allocations: 3.938 kB / 426.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.575e-05/0.4239, allocations: 15.94 kB / 426.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003635/0.4243, allocations: 113.6 kB / 426.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.4243, allocations: 4 kB / 426.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003666/0.428, allocations: 3.476 MB / 430.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.428, allocations: 0 / 430.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009212/0.4289, allocations: 440 kB / 430.7 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.962e-05/0.429, allocations: 108.9 kB / 430.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.4291, allocations: 7.984 kB / 430.8 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.4293, allocations: 19.98 kB / 430.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.172e-05/0.4294, allocations: 15.98 kB / 430.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.4294, allocations: 4 kB / 430.8 MB, free: 10.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002488/0.4297, allocations: 227.1 kB / 431.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4297, allocations: 0 / 431.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.4302, allocations: 99.84 kB / 431.2 MB, free: 10.62 MB / 350.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001596/0.4304, allocations: 104.3 kB / 431.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.4315, allocations: 0.5188 MB / 431.8 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.4315, allocations: 0 / 431.8 MB, free: 9.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004364/0.432, allocations: 337.8 kB / 432.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/0.4324, allocations: 56.39 kB / 432.2 MB, free: 9.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.4335, allocations: 0.5857 MB / 432.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003628/0.4339, allocations: 0.7794 MB / 433.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.67e-05/0.434, allocations: 26.98 kB / 433.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.4341, allocations: 23.38 kB / 433.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4341, allocations: 0 / 433.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of Templates: time 0.008206/0.4423, allocations: 4.007 MB / 437.6 MB, free: 4.113 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches