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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 123.9 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002204/0.002204, allocations: 185.2 kB / 20.73 MB, free: 2.316 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 47.92 kB / 365.7 MB, free: 0.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.104, allocations: 52.15 MB / 417.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.004649/0.1086, allocations: 3.383 MB / 421.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.11, allocations: 0.7949 MB / 422 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.1102, allocations: 11.94 kB / 422 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.1104, allocations: 63.36 kB / 422.1 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.1106, allocations: 131 kB / 422.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003128/0.111, allocations: 139.8 kB / 422.3 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004816/0.1114, allocations: 498 kB / 422.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.1117, allocations: 125 kB / 422.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/0.1119, allocations: 195.3 kB / 423.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002336/0.1122, allocations: 199.2 kB / 423.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.401e-05/0.1122, allocations: 51.94 kB / 423.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.342e-05/0.1123, allocations: 48 kB / 423.4 MB, free: 6.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.156e-05/0.1124, allocations: 103.6 kB / 423.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002053/0.1126, allocations: 222.9 kB / 423.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005976/0.1132, allocations: 0.5604 MB / 424.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1132, allocations: 0 / 424.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1132, allocations: 0 / 424.3 MB, free: 6.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1132, allocations: 0 / 424.3 MB, free: 6.031 MB / 350.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.001173/0.1144, allocations: 0.7093 MB / 425 MB, free: 5.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1144, allocations: 8.031 kB / 425 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.036e-05/0.1145, allocations: 74.72 kB / 425.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.793e-05/0.1146, allocations: 48.66 kB / 425.1 MB, free: 5.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.1151, allocations: 320.8 kB / 425.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.1151, allocations: 29.38 kB / 425.5 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.38e-05/0.1152, allocations: 35.94 kB / 425.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006919/0.1158, allocations: 390.2 kB / 425.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1159, allocations: 0 / 425.9 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.635e-05/0.1159, allocations: 15.98 kB / 425.9 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1159, allocations: 12 kB / 425.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006307/0.1165, allocations: 303.8 kB / 426.2 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.1188, allocations: 1.436 MB / 427.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006238/0.1194, allocations: 222.7 kB / 427.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.1197, allocations: 88.83 kB / 428 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.1197, allocations: 4 kB / 428 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.1197, allocations: 38.48 kB / 428 MB, free: 2.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.292e-06/0.1197, allocations: 0 / 428 MB, free: 2.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.002214/0.1219, allocations: 0.7511 MB / 428.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.122, allocations: 55.34 kB / 428.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003563/0.1223, allocations: 315.3 kB / 429.1 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.1224, allocations: 33.64 kB / 429.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.1225, allocations: 232.2 kB / 429.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.876e-05/0.1226, allocations: 63.47 kB / 429.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.972e-05/0.1227, allocations: 57.66 kB / 429.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1228, allocations: 334.8 kB / 429.8 MB, free: 192 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.123, allocations: 79.95 kB / 429.9 MB, free: 112 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.1233, allocations: 165.4 kB / 430.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004493/0.1237, allocations: 243.7 kB / 430.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1237, allocations: 0 / 430.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009815/0.1247, allocations: 422.9 kB / 430.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1247, allocations: 7.984 kB / 430.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1248, allocations: 4 kB / 430.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004719/0.1252, allocations: 117.7 kB / 430.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.1254, allocations: 43.86 kB / 430.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004264/0.1296, allocations: 3.568 MB / 434.5 MB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002408/0.1299, allocations: 35.81 kB / 434.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.1299, allocations: 11.98 kB / 434.5 MB, free: 11.16 MB / 366.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.0001903/0.1301, allocations: 161.8 kB / 434.7 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.1302, allocations: 31.75 kB / 434.7 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.158e-05/0.1302, allocations: 30.3 kB / 434.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1302, allocations: 0 / 434.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.1302, allocations: 4.094 kB / 434.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1302, allocations: 3.984 kB / 434.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004039/0.1306, allocations: 365.4 kB / 435.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.1306, allocations: 4 kB / 435.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.497e-05/0.1307, allocations: 15.94 kB / 435.1 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000351/0.1311, allocations: 113.6 kB / 435.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.1311, allocations: 128 / 435.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003702/0.1348, allocations: 3.479 MB / 438.7 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1348, allocations: 0 / 438.7 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009087/0.1357, allocations: 434.9 kB / 439.1 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.1358, allocations: 104.9 kB / 439.2 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.137e-05/0.1358, allocations: 8.172 kB / 439.2 MB, free: 6.035 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1361, allocations: 27.98 kB / 439.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.1361, allocations: 19.92 kB / 439.3 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.1361, allocations: 4 kB / 439.3 MB, free: 5.984 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002494/0.1364, allocations: 221.9 kB / 439.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1364, allocations: 0 / 439.5 MB, free: 5.773 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005104/0.1369, allocations: 103.8 kB / 439.6 MB, free: 5.672 MB / 366.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.00123/0.1381, allocations: 0.9702 MB / 440.6 MB, free: 4.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.1392, allocations: 0.499 MB / 441.1 MB, free: 4.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1392, allocations: 0 / 441.1 MB, free: 4.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004987/0.1397, allocations: 341.7 kB / 441.4 MB, free: 3.789 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004223/0.1402, allocations: 48.52 kB / 441.5 MB, free: 3.742 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005109/0.1453, allocations: 3.243 MB / 444.7 MB, free: 340 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1876/0.3328, allocations: 0.7757 MB / 445.5 MB, free: 29.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.333, allocations: 25.91 kB / 445.5 MB, free: 29.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.3331, allocations: 99.89 kB / 445.6 MB, free: 29.13 MB / 366.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3331, allocations: 0 / 445.6 MB, free: 29.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03716/0.3703, allocations: 7.17 MB / 452.8 MB, free: 28.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.75, allocations: 12.72 kB / 452.8 MB, free: 28.52 MB / 366.1 MB " [Timeout remaining time 647] (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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.692122004926205]