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.002182/0.002182, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.002811/0.002811, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.083/3.083, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6842/0.6861, allocations: 49.43 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.01288/0.699, allocations: 3.36 MB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003264/0.7024, allocations: 0.7987 MB / 404.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007518/0.7032, allocations: 8 kB / 404.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000446/0.7037, allocations: 67.34 kB / 404.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000792/0.7046, allocations: 119 kB / 404.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000784/0.7054, allocations: 143.8 kB / 404.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.7066, allocations: 0.4941 MB / 405.2 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005193/0.7071, allocations: 161 kB / 405.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004959/0.7076, allocations: 199.3 kB / 405.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003648/0.708, allocations: 199.1 kB / 405.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.445e-05/0.7081, allocations: 48 kB / 405.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.7082, allocations: 52 kB / 405.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.7084, allocations: 91.69 kB / 406 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002962/0.7087, allocations: 226.9 kB / 406.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008406/0.7095, allocations: 0.5584 MB / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.7095, allocations: 0 / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.7096, allocations: 0 / 406.8 MB, free: 2.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.7096, allocations: 0 / 406.8 MB, free: 2.27 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.00198/0.7116, allocations: 0.7019 MB / 407.5 MB, free: 1.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.056e-05/0.7117, allocations: 12.03 kB / 407.5 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.7118, allocations: 70.72 kB / 407.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001379/0.712, allocations: 44.47 kB / 407.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009357/0.7129, allocations: 324.5 kB / 407.9 MB, free: 1.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.284e-05/0.713, allocations: 33.38 kB / 407.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.7131, allocations: 31.94 kB / 408 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.7142, allocations: 394.1 kB / 408.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.7143, allocations: 0 / 408.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.563e-05/0.7143, allocations: 19.98 kB / 408.4 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.282e-05/0.7144, allocations: 11.94 kB / 408.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009447/0.7153, allocations: 299.9 kB / 408.7 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003769/0.7191, allocations: 1.435 MB / 410.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009794/0.7201, allocations: 234.8 kB / 410.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.7205, allocations: 92.81 kB / 410.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.7205, allocations: 8 kB / 410.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.85e-05/0.7206, allocations: 38.5 kB / 410.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=16): time 3.988e-06/0.7206, allocations: 0 / 410.5 MB, free: 14.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.003308/0.7239, allocations: 0.751 MB / 411.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/0.724, allocations: 55.34 kB / 411.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005588/0.7246, allocations: 307.3 kB / 411.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.438e-05/0.7247, allocations: 33.7 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002333/0.7249, allocations: 231.6 kB / 411.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.832e-05/0.725, allocations: 59.19 kB / 411.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.7251, allocations: 49.7 kB / 411.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.7253, allocations: 334.8 kB / 412.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003103/0.7257, allocations: 87.95 kB / 412.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003959/0.7261, allocations: 165.3 kB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006885/0.7268, allocations: 248.4 kB / 412.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.7268, allocations: 0 / 412.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001535/0.7283, allocations: 430.7 kB / 413.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/0.7284, allocations: 4 kB / 413.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.7284, allocations: 7.984 kB / 413.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007616/0.7292, allocations: 117.7 kB / 413.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.7295, allocations: 39.92 kB / 413.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006688/0.7362, allocations: 3.568 MB / 416.9 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.7368, allocations: 35.67 kB / 417 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.191e-05/0.7369, allocations: 8 kB / 417 MB, free: 7.383 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.0004384/0.7373, allocations: 157.8 kB / 417.1 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.7375, allocations: 27.66 kB / 417.1 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.7376, allocations: 30.3 kB / 417.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.7376, allocations: 96 / 417.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.7376, allocations: 4 kB / 417.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.7376, allocations: 3.984 kB / 417.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007781/0.7384, allocations: 373.2 kB / 417.5 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.7385, allocations: 0 / 417.5 MB, free: 6.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.7386, allocations: 8 kB / 417.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006172/0.7392, allocations: 121.6 kB / 417.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.7393, allocations: 128 / 417.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/0.7501, allocations: 3.471 MB / 421.1 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.309e-06/0.7502, allocations: 3.938 kB / 421.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001577/0.7518, allocations: 439.8 kB / 421.6 MB, free: 2.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.752, allocations: 104.7 kB / 421.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.555e-05/0.7521, allocations: 4.188 kB / 421.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.7525, allocations: 31.98 kB / 421.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.7527, allocations: 15.97 kB / 421.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.7527, allocations: 4 kB / 421.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004439/0.7532, allocations: 218 kB / 421.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7532, allocations: 0 / 421.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001019/0.7542, allocations: 103.7 kB / 422 MB, free: 1.91 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.002245/0.7565, allocations: 0.9729 MB / 423 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002008/0.7585, allocations: 0.5089 MB / 423.5 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.7586, allocations: 0 / 423.5 MB, free: 380 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007625/0.7593, allocations: 345.8 kB / 423.9 MB, free: 8 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008356/0.7602, allocations: 39.3 kB / 423.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009234/0.7694, allocations: 3.259 MB / 427.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007844/0.7703, allocations: 0.7756 MB / 427.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002629/0.7706, allocations: 34.95 kB / 428 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.7709, allocations: 99.41 kB / 428.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.7709, allocations: 0 / 428.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.186/0.9569, allocations: 7.25 MB / 435.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 29.06/30.02, allocations: 4 kB / 435.3 MB, free: 4.539 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