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.001306/0.001306, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001515/0.001515, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.362/1.362, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 51.3 kB / 301.3 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.1001, allocations: 49.44 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005192/0.1054, allocations: 3.361 MB / 354.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.1072, allocations: 0.8104 MB / 354.9 MB, free: 224 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003911/0.1076, allocations: 11.94 kB / 354.9 MB, free: 212 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002701/0.1079, allocations: 67.36 kB / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003547/0.1083, allocations: 119 kB / 355.1 MB, free: 24 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.1087, allocations: 139.8 kB / 355.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005666/0.1093, allocations: 494 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.1096, allocations: 173 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003104/0.11, allocations: 187.3 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.1103, allocations: 207.1 kB / 356.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.876e-05/0.1104, allocations: 48 kB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.536e-05/0.1105, allocations: 48 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.993e-05/0.1106, allocations: 91.75 kB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.1108, allocations: 222.9 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005353/0.1113, allocations: 0.5609 MB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1114, allocations: 0 / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1114, allocations: 0 / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.1114, allocations: 0 / 357.2 MB, free: 13.88 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.001285/0.1127, allocations: 0.698 MB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1127, allocations: 8.031 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.1128, allocations: 48.45 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004163/0.1133, allocations: 308.7 kB / 358.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.1133, allocations: 33.31 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.721e-05/0.1134, allocations: 32.12 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007299/0.1141, allocations: 394.2 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.1141, allocations: 3.938 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.1142, allocations: 16 kB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.1142, allocations: 8 kB / 358.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006632/0.1149, allocations: 295.9 kB / 359.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.1173, allocations: 1.447 MB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.1179, allocations: 242.7 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.1182, allocations: 96.81 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.1182, allocations: 4 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.246e-05/0.1183, allocations: 38.56 kB / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 2.425e-06/0.1183, allocations: 0 / 360.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002301/0.1206, allocations: 0.7509 MB / 361.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1206, allocations: 51.41 kB / 361.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003718/0.121, allocations: 315.3 kB / 362 MB, free: 8.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.649e-05/0.1211, allocations: 29.7 kB / 362 MB, free: 8.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1212, allocations: 231.6 kB / 362.2 MB, free: 8.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.323e-05/0.1213, allocations: 55.2 kB / 362.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.1214, allocations: 61.59 kB / 362.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1215, allocations: 338.8 kB / 362.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.1217, allocations: 79.95 kB / 362.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.122, allocations: 161.4 kB / 362.9 MB, free: 7.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004721/0.1225, allocations: 241.3 kB / 363.2 MB, free: 7.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1225, allocations: 4 kB / 363.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001083/0.1236, allocations: 429.3 kB / 363.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.1236, allocations: 8 kB / 363.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.1236, allocations: 0 / 363.6 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004962/0.1241, allocations: 117.7 kB / 363.7 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.1243, allocations: 43.92 kB / 363.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004335/0.1287, allocations: 3.564 MB / 367.3 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.129, allocations: 43.73 kB / 367.4 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.129, allocations: 8 kB / 367.4 MB, free: 3.07 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.000192/0.1292, allocations: 156.9 kB / 367.5 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.1293, allocations: 39.5 kB / 367.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.723e-05/0.1294, allocations: 26.3 kB / 367.6 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1294, allocations: 4.094 kB / 367.6 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1294, allocations: 7.984 kB / 367.6 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1294, allocations: 3.984 kB / 367.6 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.1298, allocations: 361.4 kB / 367.9 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1299, allocations: 0 / 367.9 MB, free: 2.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.319e-05/0.13, allocations: 15.98 kB / 368 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003818/0.1303, allocations: 125.5 kB / 368.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.1304, allocations: 0 / 368.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1742/0.3045, allocations: 3.46 MB / 371.5 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3046, allocations: 1.281 kB / 371.5 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.3056, allocations: 440.6 kB / 372 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/0.3057, allocations: 108.6 kB / 372.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.362e-05/0.3058, allocations: 2.016 kB / 372.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.306, allocations: 27.11 kB / 372.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.3061, allocations: 18.19 kB / 372.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.3062, allocations: 4.734 kB / 372.1 MB, free: 23.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000274/0.3064, allocations: 229.2 kB / 372.4 MB, free: 23.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3064, allocations: 0 / 372.4 MB, free: 23.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005697/0.307, allocations: 98.45 kB / 372.5 MB, free: 23.7 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.0001331/0.3072, allocations: 104.3 kB / 372.6 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.3084, allocations: 0.5165 MB / 373.1 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3084, allocations: 0.5156 kB / 373.1 MB, free: 23.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004281/0.3088, allocations: 340.4 kB / 373.4 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.3094, allocations: 55.14 kB / 373.5 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.3106, allocations: 0.6017 MB / 374.1 MB, free: 22.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3108, allocations: 0.7848 MB / 374.8 MB, free: 22.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.951e-05/0.3109, allocations: 21.19 kB / 374.9 MB, free: 22.17 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3109, allocations: 0.5312 kB / 374.9 MB, free: 22.17 MB / 302.1 MB Notification: Performance of Templates: time 0.01074/0.3217, allocations: 6.704 MB / 381.6 MB, free: 20.85 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 -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