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.001913/0.001913, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002168/0.002168, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001943, allocations: 59.72 kB / 306.9 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.114, allocations: 50.53 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005361/0.1194, allocations: 3.386 MB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.1209, allocations: 0.8649 MB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.1211, allocations: 8 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.1213, allocations: 67.3 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.1216, allocations: 115 kB / 361.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.1219, allocations: 151.8 kB / 362.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004869/0.1224, allocations: 498 kB / 362.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003321/0.1228, allocations: 181 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.1231, allocations: 191.4 kB / 362.9 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/0.1234, allocations: 199.1 kB / 363.1 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.556e-05/0.1234, allocations: 48 kB / 363.2 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.1236, allocations: 52 kB / 363.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.078e-05/0.1237, allocations: 99.67 kB / 363.3 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.1239, allocations: 222.9 kB / 363.5 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.1245, allocations: 0.5609 MB / 364.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1245, allocations: 0 / 364.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1245, allocations: 0 / 364.1 MB, free: 7.469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.1245, allocations: 4 kB / 364.1 MB, free: 7.465 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001106/0.1256, allocations: 0.7019 MB / 364.8 MB, free: 6.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.1257, allocations: 11.97 kB / 364.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.1259, allocations: 52.38 kB / 364.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.1263, allocations: 324.6 kB / 365.2 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.1264, allocations: 25.38 kB / 365.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.08e-05/0.1264, allocations: 40.12 kB / 365.2 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007992/0.1272, allocations: 386.2 kB / 365.6 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.1273, allocations: 0 / 365.6 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.1273, allocations: 16 kB / 365.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.1273, allocations: 8 kB / 365.6 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006535/0.128, allocations: 303.8 kB / 365.9 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002882/0.1309, allocations: 1.447 MB / 367.4 MB, free: 3.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007425/0.1316, allocations: 242.7 kB / 367.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003644/0.132, allocations: 96.81 kB / 367.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.1321, allocations: 0 / 367.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.1321, allocations: 38.56 kB / 367.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.283e-06/0.1321, allocations: 0 / 367.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002534/0.1347, allocations: 0.7497 MB / 368.5 MB, free: 2.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.1348, allocations: 63.33 kB / 368.6 MB, free: 2.715 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.1351, allocations: 316.4 kB / 368.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.1352, allocations: 29.7 kB / 368.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.1354, allocations: 227.7 kB / 369.1 MB, free: 2.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.969e-05/0.1354, allocations: 55.2 kB / 369.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-05/0.1355, allocations: 53.61 kB / 369.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1357, allocations: 338.8 kB / 369.6 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002029/0.1359, allocations: 79.95 kB / 369.6 MB, free: 1.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.1362, allocations: 165.4 kB / 369.8 MB, free: 1.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004498/0.1366, allocations: 251.6 kB / 370 MB, free: 1.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.1366, allocations: 3.984 kB / 370 MB, free: 1.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009829/0.1376, allocations: 418.8 kB / 370.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001702/0.1378, allocations: 19.17 kB / 370.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.1378, allocations: 0 / 370.5 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005156/0.1383, allocations: 117.6 kB / 370.6 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.1385, allocations: 35.92 kB / 370.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2057/0.3442, allocations: 3.56 MB / 374.2 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.3446, allocations: 41.22 kB / 374.2 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.3447, allocations: 12.75 kB / 374.2 MB, free: 17.33 MB / 302.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.0002679/0.3449, allocations: 156.5 kB / 374.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.3451, allocations: 36.12 kB / 374.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.23e-05/0.3452, allocations: 29.42 kB / 374.4 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3452, allocations: 3.406 kB / 374.5 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.3452, allocations: 4.344 kB / 374.5 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.3452, allocations: 1.359 kB / 374.5 MB, free: 17.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000678/0.3459, allocations: 368.8 kB / 374.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3459, allocations: 3.938 kB / 374.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000105/0.3461, allocations: 13.91 kB / 374.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004553/0.3465, allocations: 115.6 kB / 374.9 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.3466, allocations: 5.562 kB / 375 MB, free: 16.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003527/0.3501, allocations: 3.465 MB / 378.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.3501, allocations: 0.9375 kB / 378.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.3513, allocations: 439.1 kB / 378.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.3514, allocations: 110.2 kB / 379 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.3515, allocations: 1.781 kB / 379 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.3517, allocations: 29.98 kB / 379 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.18e-05/0.3518, allocations: 11.58 kB / 379 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.3519, allocations: 9.016 kB / 379 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003394/0.3522, allocations: 222.2 kB / 379.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.545e-06/0.3522, allocations: 0 / 379.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000708/0.3529, allocations: 104 kB / 379.3 MB, free: 13.5 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: 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.0002449/0.3532, allocations: 109.8 kB / 379.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.3545, allocations: 0.5055 MB / 379.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3545, allocations: 3.938 kB / 379.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004478/0.355, allocations: 348 kB / 380.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005733/0.3556, allocations: 55.33 kB / 380.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.357, allocations: 0.5764 MB / 380.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.3574, allocations: 0.7798 MB / 381.7 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.3575, allocations: 26.92 kB / 381.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.3576, allocations: 24.53 kB / 381.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3576, allocations: 0.5469 kB / 381.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of Templates: time 0.01315/0.3708, allocations: 3.931 MB / 385.7 MB, free: 11.5 MB / 302.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