Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.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.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 114.1 kB / 17.69 MB, free: 5.312 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.001207/0.001207, allocations: 191 kB / 18.63 MB, free: 4.379 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.47/1.47, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001093/0.001093, allocations: 50.92 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1366, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005741/0.1424, allocations: 3.356 MB / 354.9 MB, free: 324 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.1445, allocations: 0.8065 MB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.1447, allocations: 8 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.145, allocations: 67.36 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002393/0.1453, allocations: 118.9 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.1456, allocations: 143.8 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005191/0.1461, allocations: 0.4941 MB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003715/0.1465, allocations: 173 kB / 356.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002559/0.1468, allocations: 183.3 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.147, allocations: 199.2 kB / 357.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.734e-05/0.1471, allocations: 48 kB / 357.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.703e-05/0.1472, allocations: 52 kB / 357.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.305e-05/0.1473, allocations: 95.62 kB / 357.2 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002016/0.1475, allocations: 219 kB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005942/0.1481, allocations: 0.5645 MB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1481, allocations: 0 / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1481, allocations: 4 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.266e-05/0.1481, allocations: 0 / 358 MB, free: 13.16 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.001251/0.1494, allocations: 0.698 MB / 358.7 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1494, allocations: 12.03 kB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.304e-05/0.1495, allocations: 40.47 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005075/0.15, allocations: 316.6 kB / 359.1 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.1501, allocations: 37.3 kB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.619e-05/0.1501, allocations: 40.12 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000725/0.1509, allocations: 390.1 kB / 359.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.1509, allocations: 0 / 359.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.1509, allocations: 16 kB / 359.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.151, allocations: 8 kB / 359.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006509/0.1516, allocations: 303.9 kB / 359.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.1542, allocations: 1.431 MB / 361.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007282/0.155, allocations: 230.8 kB / 361.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.1552, allocations: 92.81 kB / 361.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.1553, allocations: 4 kB / 361.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.1553, allocations: 38.5 kB / 361.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.014e-06/0.1553, allocations: 4 kB / 361.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002486/0.1578, allocations: 0.7548 MB / 362.4 MB, free: 8.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001904/0.158, allocations: 51.41 kB / 362.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.1585, allocations: 315.3 kB / 362.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.1586, allocations: 29.7 kB / 362.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.1589, allocations: 231.6 kB / 363 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.848e-05/0.1589, allocations: 59.19 kB / 363.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.986e-05/0.159, allocations: 53.61 kB / 363.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001962/0.1592, allocations: 338.8 kB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.1595, allocations: 83.89 kB / 363.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.1598, allocations: 165.3 kB / 363.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.1602, allocations: 241.3 kB / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.1603, allocations: 0 / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009816/0.1613, allocations: 429.7 kB / 364.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.1613, allocations: 8.062 kB / 364.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1613, allocations: 4 kB / 364.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004981/0.1618, allocations: 113.6 kB / 364.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.162, allocations: 39.91 kB / 364.5 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004796/0.1668, allocations: 3.568 MB / 368.1 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002616/0.1671, allocations: 35.67 kB / 368.1 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.1671, allocations: 8 kB / 368.1 MB, free: 2.363 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.0002492/0.1674, allocations: 165.6 kB / 368.3 MB, free: 2.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.181e-05/0.1674, allocations: 31.62 kB / 368.3 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.729e-05/0.1675, allocations: 38.3 kB / 368.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1676, allocations: 0 / 368.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.1676, allocations: 7.984 kB / 368.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1676, allocations: 0 / 368.4 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004916/0.1681, allocations: 357.4 kB / 368.7 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1681, allocations: 3.938 kB / 368.7 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.679e-05/0.1682, allocations: 11.98 kB / 368.7 MB, free: 1.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003579/0.1685, allocations: 121.6 kB / 368.9 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.1686, allocations: 128 / 368.9 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2903/0.4588, allocations: 3.473 MB / 372.3 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4589, allocations: 0 / 372.3 MB, free: 23.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009996/0.4599, allocations: 432.3 kB / 372.8 MB, free: 23.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.46, allocations: 104 kB / 372.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.4601, allocations: 9.047 kB / 372.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002547/0.4603, allocations: 27.5 kB / 372.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.73e-05/0.4604, allocations: 14.39 kB / 372.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.006e-05/0.4604, allocations: 11.22 kB / 372.9 MB, free: 23.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002854/0.4607, allocations: 219.5 kB / 373.1 MB, free: 23.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.663e-06/0.4607, allocations: 0 / 373.1 MB, free: 23.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005622/0.4613, allocations: 106.3 kB / 373.2 MB, free: 23.31 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.0001475/0.4615, allocations: 101.3 kB / 373.3 MB, free: 23.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.4627, allocations: 0.513 MB / 373.8 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4627, allocations: 1 kB / 373.8 MB, free: 23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004126/0.4631, allocations: 342.2 kB / 374.2 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.4635, allocations: 44.12 kB / 374.2 MB, free: 22.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.4649, allocations: 0.5655 MB / 374.8 MB, free: 22.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.4652, allocations: 0.7758 MB / 375.6 MB, free: 21.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001183/0.4653, allocations: 28.52 kB / 375.6 MB, free: 21.81 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.296e-05/0.4654, allocations: 19.03 kB / 375.6 MB, free: 21.81 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4654, allocations: 7.219 kB / 375.6 MB, free: 21.81 MB / 302.1 MB Notification: Performance of Templates: time 0.0105/0.4759, allocations: 3.943 MB / 379.6 MB, free: 21.66 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches