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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 104.5 kB / 16.92 MB, free: 5.793 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.001665/0.001665, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.371/1.371, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 47.3 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0969/0.09805, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.005182/0.1033, allocations: 3.359 MB / 353.5 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.1051, allocations: 0.8065 MB / 354.3 MB, free: 120 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003616/0.1055, allocations: 7.938 kB / 354.4 MB, free: 112 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003181/0.1059, allocations: 67.36 kB / 354.4 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003616/0.1063, allocations: 123.1 kB / 354.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003936/0.1067, allocations: 131.8 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005958/0.1073, allocations: 0.4902 MB / 355.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003388/0.1076, allocations: 173 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003216/0.108, allocations: 191.3 kB / 355.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.1082, allocations: 195.2 kB / 355.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.708e-05/0.1084, allocations: 48 kB / 355.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.281e-05/0.1085, allocations: 52 kB / 355.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.442e-05/0.1085, allocations: 99.69 kB / 355.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.1088, allocations: 222.9 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005059/0.1093, allocations: 0.557 MB / 356.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1093, allocations: 0 / 356.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1093, allocations: 0 / 356.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.1093, allocations: 0 / 356.7 MB, free: 13.78 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.001248/0.1106, allocations: 0.698 MB / 357.4 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1106, allocations: 8.031 kB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.277e-05/0.1107, allocations: 74.72 kB / 357.5 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.449e-05/0.1108, allocations: 44.47 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003672/0.1112, allocations: 316.6 kB / 357.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.1112, allocations: 33.31 kB / 357.8 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.1113, allocations: 35.94 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006836/0.112, allocations: 386.2 kB / 358.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.112, allocations: 0 / 358.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.112, allocations: 16 kB / 358.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.112, allocations: 8 kB / 358.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.1127, allocations: 299.9 kB / 358.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.115, allocations: 1.443 MB / 360 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006339/0.1156, allocations: 242.7 kB / 360.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.1158, allocations: 96.81 kB / 360.3 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.1159, allocations: 3.938 kB / 360.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.1159, allocations: 38.56 kB / 360.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.533e-06/0.1159, allocations: 0 / 360.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002285/0.1182, allocations: 0.7548 MB / 361.1 MB, free: 9.035 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.04e-05/0.1183, allocations: 63.34 kB / 361.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.1186, allocations: 303.4 kB / 361.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1186, allocations: 29.7 kB / 361.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/0.1188, allocations: 235.6 kB / 361.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.013e-05/0.1188, allocations: 51.2 kB / 361.8 MB, free: 8.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.436e-05/0.1189, allocations: 57.61 kB / 361.9 MB, free: 8.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1191, allocations: 334.8 kB / 362.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.1193, allocations: 91.95 kB / 362.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.1196, allocations: 157.8 kB / 362.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004555/0.12, allocations: 248 kB / 362.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.12, allocations: 4 kB / 362.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00103/0.1211, allocations: 426.8 kB / 363.1 MB, free: 6.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.1211, allocations: 4 kB / 363.1 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.1211, allocations: 4 kB / 363.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004703/0.1216, allocations: 117.7 kB / 363.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001693/0.1218, allocations: 43.92 kB / 363.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004174/0.126, allocations: 3.564 MB / 366.8 MB, free: 2.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.1262, allocations: 39.67 kB / 366.9 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1262, allocations: 8 kB / 366.9 MB, free: 2.887 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.0001844/0.1264, allocations: 161.1 kB / 367 MB, free: 2.723 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-05/0.1265, allocations: 39.56 kB / 367.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.699e-05/0.1266, allocations: 30.3 kB / 367.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1266, allocations: 0 / 367.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1266, allocations: 0 / 367.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1266, allocations: 0 / 367.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003924/0.127, allocations: 361.4 kB / 367.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.127, allocations: 0 / 367.4 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.227e-05/0.1271, allocations: 15.98 kB / 367.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003701/0.1275, allocations: 125.5 kB / 367.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.1275, allocations: 0 / 367.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.173/0.3005, allocations: 3.468 MB / 371.1 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3005, allocations: 0 / 371.1 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009162/0.3014, allocations: 435.2 kB / 371.5 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.417e-05/0.3015, allocations: 113.4 kB / 371.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.179e-05/0.3016, allocations: 1.062 kB / 371.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.3018, allocations: 25.56 kB / 371.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.298e-05/0.3019, allocations: 17.22 kB / 371.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.3019, allocations: 8.047 kB / 371.6 MB, free: 24.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002314/0.3021, allocations: 222.1 kB / 371.9 MB, free: 24.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3021, allocations: 0 / 371.9 MB, free: 24.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005936/0.3027, allocations: 99.47 kB / 372 MB, free: 24.23 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.001053/0.3038, allocations: 0.9672 MB / 372.9 MB, free: 23.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001062/0.3049, allocations: 0.5249 MB / 373.4 MB, free: 23.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.3049, allocations: 3.938 kB / 373.5 MB, free: 23.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003647/0.3053, allocations: 341.1 kB / 373.8 MB, free: 22.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.3057, allocations: 50.34 kB / 373.8 MB, free: 22.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004265/0.31, allocations: 3.26 MB / 377.1 MB, free: 20.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.3102, allocations: 0.7766 MB / 377.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001235/0.3103, allocations: 26.38 kB / 377.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.3105, allocations: 104.6 kB / 378 MB, free: 20.1 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3105, allocations: 0 / 378 MB, free: 20.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.3421, allocations: 6.97 MB / 385 MB, free: 18.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.62, allocations: 16.5 kB / 385 MB, free: 18.51 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > 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