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.001384/0.001384, allocations: 112 kB / 17.68 MB, free: 5.332 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.001559/0.00156, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.401/1.401, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 55.39 kB / 302.1 MB, free: 5.145 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09411, allocations: 49.44 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004373/0.09852, allocations: 3.357 MB / 354.9 MB, free: 296 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.09991, allocations: 0.8143 MB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.1001, allocations: 11.94 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.1003, allocations: 63.36 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.1005, allocations: 115 kB / 355.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000304/0.1008, allocations: 147.8 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004571/0.1013, allocations: 494 kB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002782/0.1016, allocations: 177 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.1018, allocations: 187.3 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.102, allocations: 203.1 kB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.855e-05/0.1021, allocations: 48 kB / 357.1 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.039e-05/0.1022, allocations: 52 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.535e-05/0.1023, allocations: 87.75 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001934/0.1025, allocations: 230.9 kB / 357.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004823/0.1029, allocations: 0.5567 MB / 358 MB, free: 13.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.103, allocations: 4 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.103, allocations: 0 / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.844e-06/0.103, allocations: 0 / 358 MB, free: 13.12 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.001097/0.1041, allocations: 0.698 MB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1041, allocations: 8.031 kB / 358.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.925e-05/0.1042, allocations: 44.47 kB / 358.8 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.1047, allocations: 320.6 kB / 359.1 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.1047, allocations: 29.38 kB / 359.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.1048, allocations: 32.12 kB / 359.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006439/0.1054, allocations: 394.1 kB / 359.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.1055, allocations: 0 / 359.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.1055, allocations: 16 kB / 359.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1055, allocations: 11.94 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005989/0.1061, allocations: 303.8 kB / 359.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.1083, allocations: 1.432 MB / 361.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.109, allocations: 238.7 kB / 361.5 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.1092, allocations: 92.81 kB / 361.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.1092, allocations: 4 kB / 361.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.441e-05/0.1093, allocations: 38.56 kB / 361.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.372e-06/0.1093, allocations: 0 / 361.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002197/0.1115, allocations: 0.7532 MB / 362.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.1116, allocations: 59.34 kB / 362.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.1119, allocations: 311.3 kB / 362.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1119, allocations: 33.7 kB / 362.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.1121, allocations: 227.6 kB / 363 MB, free: 7.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.1122, allocations: 55.2 kB / 363.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.461e-05/0.1122, allocations: 57.61 kB / 363.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.1124, allocations: 338.8 kB / 363.5 MB, free: 7.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.1126, allocations: 79.97 kB / 363.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.1129, allocations: 157.4 kB / 363.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004417/0.1133, allocations: 249.3 kB / 363.9 MB, free: 6.824 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1133, allocations: 3.938 kB / 363.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009276/0.1143, allocations: 421.8 kB / 364.3 MB, free: 6.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.1143, allocations: 8.062 kB / 364.4 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1143, allocations: 4 kB / 364.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004218/0.1147, allocations: 117.6 kB / 364.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.1149, allocations: 43.92 kB / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004152/0.119, allocations: 3.56 MB / 368.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.1193, allocations: 39.7 kB / 368.1 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.1193, allocations: 8 kB / 368.1 MB, free: 2.336 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.0001952/0.1195, allocations: 165.6 kB / 368.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.1196, allocations: 35.62 kB / 368.3 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.34e-05/0.1196, allocations: 30.3 kB / 368.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1196, allocations: 0 / 368.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1196, allocations: 0 / 368.3 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1196, allocations: 4 kB / 368.4 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004119/0.1201, allocations: 361.4 kB / 368.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-05/0.1201, allocations: 4 kB / 368.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.852e-05/0.1202, allocations: 16.05 kB / 368.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003324/0.1205, allocations: 125.6 kB / 368.8 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.207e-05/0.1205, allocations: 0 / 368.8 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1463/0.2668, allocations: 3.463 MB / 372.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2669, allocations: 6.766 kB / 372.3 MB, free: 23.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.2677, allocations: 428.4 kB / 372.7 MB, free: 23.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.523e-05/0.2678, allocations: 108.1 kB / 372.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.2679, allocations: 5.078 kB / 372.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.2681, allocations: 29.33 kB / 372.9 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.2682, allocations: 16.5 kB / 372.9 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.2682, allocations: 5.188 kB / 372.9 MB, free: 23.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002393/0.2684, allocations: 224.5 kB / 373.1 MB, free: 23.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2685, allocations: 0 / 373.1 MB, free: 23.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005193/0.269, allocations: 101.2 kB / 373.2 MB, free: 23.04 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.0001155/0.2691, allocations: 105.4 kB / 373.3 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.2701, allocations: 0.5156 MB / 373.8 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.2701, allocations: 0 / 373.8 MB, free: 22.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003596/0.2705, allocations: 346.9 kB / 374.2 MB, free: 22.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003899/0.2709, allocations: 50.11 kB / 374.2 MB, free: 22.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.272, allocations: 0.5647 MB / 374.8 MB, free: 22.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002241/0.2722, allocations: 0.7794 MB / 375.6 MB, free: 21.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.2723, allocations: 31.14 kB / 375.6 MB, free: 21.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.171e-05/0.2724, allocations: 20.5 kB / 375.6 MB, free: 21.54 MB / 302.1 MB Notification: Performance of SimCode: time 1.91e-07/0.2724, allocations: 0 / 375.6 MB, free: 21.54 MB / 302.1 MB Notification: Performance of Templates: time 0.008108/0.2805, allocations: 3.937 MB / 379.6 MB, free: 21.38 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 gbode -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