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.001283/0.001283, allocations: 105.3 kB / 17.06 MB, free: 6.016 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.001416/0.001416, allocations: 196 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.121/2.121, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 43.94 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4855/0.4875, allocations: 49.44 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.006384/0.494, allocations: 3.362 MB / 403.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.4962, allocations: 0.7987 MB / 404.4 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005431/0.4967, allocations: 7.938 kB / 404.4 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003972/0.4971, allocations: 75.34 kB / 404.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005452/0.4978, allocations: 115 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004724/0.4982, allocations: 135.8 kB / 404.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007097/0.499, allocations: 498 kB / 405.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003624/0.4993, allocations: 177 kB / 405.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003529/0.4997, allocations: 191.3 kB / 405.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.5001, allocations: 207.1 kB / 405.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.5003, allocations: 48 kB / 405.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.293e-05/0.5004, allocations: 48 kB / 405.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.365e-05/0.5005, allocations: 95.73 kB / 406 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002389/0.5007, allocations: 222.9 kB / 406.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006322/0.5013, allocations: 0.5623 MB / 406.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.5014, allocations: 0 / 406.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5014, allocations: 0 / 406.8 MB, free: 2.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.5014, allocations: 0 / 406.8 MB, free: 2.242 MB / 318.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.001404/0.5028, allocations: 0.6941 MB / 407.5 MB, free: 1.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.5029, allocations: 11.89 kB / 407.5 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.553e-05/0.503, allocations: 86.64 kB / 407.6 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.5031, allocations: 44.47 kB / 407.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.5036, allocations: 320.5 kB / 407.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.04e-05/0.5037, allocations: 25.38 kB / 407.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.167e-05/0.5037, allocations: 39.94 kB / 408 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007794/0.5045, allocations: 394.2 kB / 408.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.5045, allocations: 4 kB / 408.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.5046, allocations: 8 kB / 408.4 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.5046, allocations: 12 kB / 408.4 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006971/0.5053, allocations: 299.8 kB / 408.7 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.5079, allocations: 1.439 MB / 410.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006669/0.5086, allocations: 234.7 kB / 410.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.5088, allocations: 92.83 kB / 410.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.5089, allocations: 3.984 kB / 410.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.156e-05/0.5089, allocations: 34.56 kB / 410.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.747e-06/0.5089, allocations: 3.984 kB / 410.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.002852/0.5118, allocations: 0.7587 MB / 411.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.5119, allocations: 59.34 kB / 411.3 MB, free: 13.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003866/0.5123, allocations: 307.3 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.5123, allocations: 29.7 kB / 411.6 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001722/0.5125, allocations: 235.6 kB / 411.9 MB, free: 12.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.355e-05/0.5125, allocations: 51.2 kB / 411.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.512e-05/0.5126, allocations: 49.7 kB / 412 MB, free: 12.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5128, allocations: 334.8 kB / 412.3 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.513, allocations: 91.95 kB / 412.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.5133, allocations: 161.4 kB / 412.5 MB, free: 12.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/0.5138, allocations: 243.6 kB / 412.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.5139, allocations: 4 kB / 412.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001376/0.5152, allocations: 426.7 kB / 413.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.5153, allocations: 8 kB / 413.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.5153, allocations: 4 kB / 413.2 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005281/0.5159, allocations: 117.6 kB / 413.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001778/0.516, allocations: 35.98 kB / 413.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004442/0.5205, allocations: 3.568 MB / 416.9 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.5208, allocations: 47.67 kB / 417 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.5209, allocations: 12 kB / 417 MB, free: 7.348 MB / 334.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.0002394/0.5211, allocations: 145.8 kB / 417.1 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/0.5212, allocations: 31.66 kB / 417.1 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.508e-05/0.5213, allocations: 26.3 kB / 417.2 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.5213, allocations: 4 kB / 417.2 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.5213, allocations: 4 kB / 417.2 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.5213, allocations: 3.938 kB / 417.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004597/0.5218, allocations: 365.3 kB / 417.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.5218, allocations: 0 / 417.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.936e-05/0.5219, allocations: 12 kB / 417.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003942/0.5223, allocations: 117.6 kB / 417.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.804e-05/0.5223, allocations: 7.984 kB / 417.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003638/0.526, allocations: 3.467 MB / 421.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.526, allocations: 0 / 421.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008955/0.5269, allocations: 435.5 kB / 421.6 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.527, allocations: 108.7 kB / 421.7 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.725e-05/0.527, allocations: 4 kB / 421.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.5273, allocations: 23.98 kB / 421.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.854e-05/0.5273, allocations: 19.92 kB / 421.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.5274, allocations: 11.98 kB / 421.7 MB, free: 2.195 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002317/0.5276, allocations: 218 kB / 421.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5276, allocations: 0 / 421.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005442/0.5282, allocations: 99.69 kB / 422 MB, free: 1.891 MB / 334.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.001275/0.5294, allocations: 0.9674 MB / 423 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.5306, allocations: 0.5093 MB / 423.5 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5306, allocations: 4.062 kB / 423.5 MB, free: 360 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004453/0.531, allocations: 344.2 kB / 423.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004314/0.5315, allocations: 61.88 kB / 423.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004991/0.5365, allocations: 3.248 MB / 427.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.5369, allocations: 0.7756 MB / 427.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.537, allocations: 26.97 kB / 428 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.5372, allocations: 99.41 kB / 428.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5372, allocations: 0 / 428.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04537/0.5826, allocations: 7.264 MB / 435.3 MB, free: 4.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/19.24, allocations: 7.812 kB / 435.3 MB, free: 4.508 MB / 350.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