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.002097/0.002097, allocations: 103.9 kB / 16.62 MB, free: 6.812 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.002632/0.002632, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.461/1.461, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 47.23 kB / 300.3 MB, free: 6.098 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1623, allocations: 49.45 MB / 349.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.006829/0.1692, allocations: 3.395 MB / 353.1 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.1715, allocations: 0.8104 MB / 353.9 MB, free: 416 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005201/0.172, allocations: 8 kB / 353.9 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004185/0.1724, allocations: 51.61 kB / 354 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007324/0.1733, allocations: 103.2 kB / 354.1 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.1738, allocations: 115.9 kB / 354.2 MB, free: 136 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.175, allocations: 498.2 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004799/0.1755, allocations: 184.9 kB / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000545/0.176, allocations: 183.4 kB / 355 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005184/0.1766, allocations: 195.2 kB / 355.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.1768, allocations: 51.94 kB / 355.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001853/0.177, allocations: 48 kB / 355.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.1771, allocations: 99.73 kB / 355.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003951/0.1775, allocations: 218.9 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007778/0.1783, allocations: 0.5608 MB / 356.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.917e-06/0.1783, allocations: 0 / 356.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1783, allocations: 0 / 356.2 MB, free: 14.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.592e-05/0.1784, allocations: 4 kB / 356.2 MB, free: 14.11 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.001874/0.1803, allocations: 0.698 MB / 356.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.516e-05/0.1803, allocations: 8.031 kB / 356.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.1805, allocations: 74.72 kB / 357 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.1806, allocations: 40.47 kB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.1812, allocations: 316.6 kB / 357.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.1813, allocations: 33.31 kB / 357.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.416e-05/0.1813, allocations: 31.94 kB / 357.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008794/0.1822, allocations: 394.2 kB / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.805e-05/0.1822, allocations: 0 / 357.8 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.655e-05/0.1823, allocations: 16 kB / 357.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.1823, allocations: 8 kB / 357.8 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007403/0.1831, allocations: 299.8 kB / 358.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.1859, allocations: 1.443 MB / 359.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006659/0.1866, allocations: 238.7 kB / 359.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.1868, allocations: 100.3 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.1868, allocations: 0 / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.1869, allocations: 46.5 kB / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.883e-06/0.1869, allocations: 0 / 359.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002281/0.1892, allocations: 0.7548 MB / 360.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.1893, allocations: 55.34 kB / 360.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003988/0.1897, allocations: 307.4 kB / 361 MB, free: 8.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.1897, allocations: 29.7 kB / 361 MB, free: 8.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.1899, allocations: 231.6 kB / 361.3 MB, free: 8.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.399e-05/0.19, allocations: 59.14 kB / 361.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.1901, allocations: 61.61 kB / 361.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1902, allocations: 330.8 kB / 361.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002165/0.1904, allocations: 83.95 kB / 361.8 MB, free: 8.191 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.1907, allocations: 157.4 kB / 361.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000439/0.1912, allocations: 245.3 kB / 362.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.1912, allocations: 0 / 362.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001023/0.1922, allocations: 425.5 kB / 362.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.1922, allocations: 12.06 kB / 362.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.1922, allocations: 0 / 362.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004919/0.1927, allocations: 121.6 kB / 362.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/0.1929, allocations: 39.92 kB / 362.8 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004419/0.1974, allocations: 3.56 MB / 366.3 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002535/0.1976, allocations: 43.67 kB / 366.4 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.1977, allocations: 12 kB / 366.4 MB, free: 3.234 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.0002094/0.1979, allocations: 157.7 kB / 366.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/0.1979, allocations: 35.56 kB / 366.6 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.713e-05/0.198, allocations: 26.3 kB / 366.6 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.198, allocations: 4 kB / 366.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.198, allocations: 0 / 366.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.198, allocations: 0 / 366.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.1985, allocations: 365.4 kB / 367 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1985, allocations: 96 / 367 MB, free: 2.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.529e-05/0.1986, allocations: 19.92 kB / 367 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003622/0.199, allocations: 117.6 kB / 367.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.199, allocations: 4 kB / 367.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3385/0.5376, allocations: 3.464 MB / 370.6 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5376, allocations: 0.5 kB / 370.6 MB, free: 23.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.539, allocations: 438.7 kB / 371 MB, free: 23.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.5392, allocations: 104.5 kB / 371.1 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.5392, allocations: 2.094 kB / 371.1 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000317/0.5395, allocations: 28.27 kB / 371.1 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.5396, allocations: 22.17 kB / 371.1 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.5397, allocations: 4.875 kB / 371.1 MB, free: 23.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004299/0.5401, allocations: 221 kB / 371.4 MB, free: 23.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5401, allocations: 1.031 kB / 371.4 MB, free: 23.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007677/0.5409, allocations: 100.4 kB / 371.5 MB, free: 23.43 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.001588/0.5425, allocations: 0.9668 MB / 372.4 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001501/0.544, allocations: 0.514 MB / 372.9 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.544, allocations: 0 / 372.9 MB, free: 22.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000483/0.5445, allocations: 343.7 kB / 373.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006557/0.5452, allocations: 48.77 kB / 373.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006565/0.5518, allocations: 3.396 MB / 376.7 MB, free: 20.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003926/0.5522, allocations: 0.781 MB / 377.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000166/0.5524, allocations: 26.75 kB / 377.5 MB, free: 19.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.5525, allocations: 104 kB / 377.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of SimCode: time 1.773e-06/0.5526, allocations: 0 / 377.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.5808, allocations: 6.862 MB / 384.5 MB, free: 18.51 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.581, allocations: 242.2 kB / 384.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.171/2.752, allocations: 0 / 384.7 MB, free: 18.25 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