Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001461/0.001461, allocations: 197.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006835/0.0006835, allocations: 95.55 kB / 296.7 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002253/0.0002254, allocations: 8 kB / 356.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1844, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.002236/0.1867, allocations: 2.907 MB / 411.1 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009399/0.1877, allocations: 0.7929 MB / 411.8 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1878, allocations: 12.44 kB / 411.9 MB, free: 23.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.188, allocations: 43.67 kB / 411.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.1881, allocations: 101.3 kB / 412 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1884, allocations: 88.89 kB / 412.1 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.1887, allocations: 458 kB / 412.5 MB, free: 23.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.1889, allocations: 141.7 kB / 412.7 MB, free: 23.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001792/0.189, allocations: 163.3 kB / 412.8 MB, free: 22.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.1892, allocations: 171.2 kB / 413 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.702e-05/0.1893, allocations: 20 kB / 413 MB, free: 22.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.189e-05/0.1893, allocations: 24 kB / 413 MB, free: 22.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.904e-05/0.1894, allocations: 59.7 kB / 413.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.1895, allocations: 208.8 kB / 413.3 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.1898, allocations: 447.9 kB / 413.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1898, allocations: 0 / 413.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1898, allocations: 0 / 413.7 MB, free: 22.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.1898, allocations: 0 / 413.7 MB, free: 22.06 MB / 298.7 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.0007966/0.1906, allocations: 0.6396 MB / 414.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.1906, allocations: 12.03 kB / 414.4 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.843e-05/0.1907, allocations: 70.72 kB / 414.5 MB, free: 21.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.1909, allocations: 52.45 kB / 414.5 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.1911, allocations: 316.6 kB / 414.8 MB, free: 20.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.517e-05/0.1911, allocations: 29.31 kB / 414.9 MB, free: 20.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.1912, allocations: 39.94 kB / 414.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005736/0.1918, allocations: 390.2 kB / 415.3 MB, free: 20.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1918, allocations: 3.984 kB / 415.3 MB, free: 20.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/0.1918, allocations: 16 kB / 415.3 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.1918, allocations: 8 kB / 415.3 MB, free: 20.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005277/0.1924, allocations: 303.9 kB / 415.6 MB, free: 20.1 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.1941, allocations: 1.467 MB / 417.1 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005193/0.1946, allocations: 246.7 kB / 417.3 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.1948, allocations: 100.8 kB / 417.4 MB, free: 18.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1948, allocations: 0 / 417.4 MB, free: 18.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.1949, allocations: 38.56 kB / 417.4 MB, free: 18.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.202e-06/0.1949, allocations: 0 / 417.4 MB, free: 18.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001935/0.1968, allocations: 0.813 MB / 418.3 MB, free: 17.29 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.213e-05/0.1969, allocations: 59.34 kB / 418.3 MB, free: 17.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.1971, allocations: 303.4 kB / 418.6 MB, free: 16.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.1971, allocations: 33.64 kB / 418.6 MB, free: 16.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.356e-05/0.1972, allocations: 231.6 kB / 418.9 MB, free: 16.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.1972, allocations: 51.2 kB / 418.9 MB, free: 16.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.1973, allocations: 4 kB / 418.9 MB, free: 16.58 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.145e-05/0.1973, allocations: 346.8 kB / 419.3 MB, free: 16.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001884/0.1975, allocations: 87.95 kB / 419.3 MB, free: 16.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.1977, allocations: 161.3 kB / 419.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.1981, allocations: 255.7 kB / 419.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1981, allocations: 4 kB / 419.8 MB, free: 15.67 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008456/0.199, allocations: 442.7 kB / 420.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.199, allocations: 8 kB / 420.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.199, allocations: 4.062 kB / 420.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003857/0.1994, allocations: 121.6 kB / 420.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.1995, allocations: 43.92 kB / 420.4 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/0.2024, allocations: 3.31 MB / 423.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.2026, allocations: 47.61 kB / 423.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.2026, allocations: 15.94 kB / 423.7 MB, free: 11.41 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.2027, allocations: 149.7 kB / 423.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.25e-05/0.2028, allocations: 27.97 kB / 423.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.2028, allocations: 34.3 kB / 423.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2029, allocations: 7.984 kB / 423.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2029, allocations: 0 / 423.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2029, allocations: 0 / 423.9 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002665/0.2031, allocations: 373.2 kB / 424.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2032, allocations: 0 / 424.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.185e-05/0.2032, allocations: 12 kB / 424.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003076/0.2035, allocations: 121.6 kB / 424.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.2036, allocations: 7.984 kB / 424.5 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002315/0.2059, allocations: 3.194 MB / 427.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2059, allocations: 0 / 427.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007466/0.2067, allocations: 460.5 kB / 428.1 MB, free: 6.688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.573e-05/0.2067, allocations: 108.8 kB / 428.2 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.2067, allocations: 0 / 428.2 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.207, allocations: 31.98 kB / 428.2 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.872e-05/0.207, allocations: 15.97 kB / 428.2 MB, free: 6.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.207, allocations: 0 / 428.2 MB, free: 6.516 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001589/0.2072, allocations: 222 kB / 428.5 MB, free: 6.297 MB / 298.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2072, allocations: 0 / 428.5 MB, free: 6.297 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004228/0.2076, allocations: 99.69 kB / 428.6 MB, free: 6.199 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009183/0.2086, allocations: 0.9907 MB / 429.6 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009149/0.2095, allocations: 0.5423 MB / 430.1 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.2095, allocations: 0 / 430.1 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.2098, allocations: 341.8 kB / 430.4 MB, free: 4.254 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.2102, allocations: 44.39 kB / 430.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.2128, allocations: 1.923 MB / 432.4 MB, free: 2.203 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.213, allocations: 0.7794 MB / 433.2 MB, free: 1.398 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001353/0.2132, allocations: 99.41 kB / 433.3 MB, free: 1.301 MB / 298.7 MB Notification: Performance of SimCode: time 4.1e-07/0.2132, allocations: 4 kB / 433.3 MB, free: 1.297 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.258/3.471, allocations: 7.728 MB / 441 MB, free: 9.559 MB / 314.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches