Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.001397/0.001397, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001467/0.001467, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.43/1.43, allocations: 225.6 MB / 249.1 MB, free: 3.641 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.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 47.92 kB / 365.6 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1084, allocations: 52.14 MB / 417.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003004/0.1114, allocations: 1.555 MB / 419.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000433/0.1119, allocations: 151.4 kB / 419.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.08e-05/0.1119, allocations: 0 / 419.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.913e-05/0.112, allocations: 7.922 kB / 419.5 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1121, allocations: 7.938 kB / 419.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.1124, allocations: 39.83 kB / 419.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.1125, allocations: 35.92 kB / 419.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.405e-05/0.1126, allocations: 12 kB / 419.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.139e-05/0.1126, allocations: 11.92 kB / 419.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.697e-05/0.1127, allocations: 19.86 kB / 419.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.432e-05/0.1127, allocations: 0 / 419.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.103e-05/0.1127, allocations: 4 kB / 419.6 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.768e-05/0.1127, allocations: 11.98 kB / 419.6 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.247e-05/0.1128, allocations: 23.81 kB / 419.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.1129, allocations: 47.75 kB / 419.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1129, allocations: 0 / 419.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1129, allocations: 0 / 419.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1129, allocations: 3.938 kB / 419.7 MB, free: 10.78 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004966/0.1134, allocations: 375.1 kB / 420.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.1135, allocations: 12.03 kB / 420.1 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.332e-05/0.1135, allocations: 30.75 kB / 420.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.766e-05/0.1135, allocations: 12.89 kB / 420.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.1138, allocations: 201.9 kB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.1138, allocations: 384 / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.1138, allocations: 8.375 kB / 420.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002755/0.1141, allocations: 113.6 kB / 420.4 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1141, allocations: 3.938 kB / 420.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-06/0.1141, allocations: 0 / 420.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1141, allocations: 0 / 420.4 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.327e-05/0.1142, allocations: 23.92 kB / 420.5 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003265/0.1145, allocations: 261.8 kB / 420.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002162/0.1147, allocations: 142.2 kB / 420.9 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.695e-05/0.1148, allocations: 33.75 kB / 420.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.1148, allocations: 0 / 420.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1149, allocations: 34.56 kB / 420.9 MB, free: 9.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.1149, allocations: 3.938 kB / 420.9 MB, free: 9.332 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002408/0.1151, allocations: 77.56 kB / 421 MB, free: 9.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.1152, allocations: 81.11 kB / 421.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.1153, allocations: 134.2 kB / 421.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.1153, allocations: 25.7 kB / 421.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.066e-05/0.1153, allocations: 88.14 kB / 421.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.1154, allocations: 4 kB / 421.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.1154, allocations: 21.61 kB / 421.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.1155, allocations: 326.8 kB / 421.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.626e-05/0.1156, allocations: 4 kB / 421.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.262e-05/0.1156, allocations: 39.42 kB / 421.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.071e-05/0.1157, allocations: 43.36 kB / 421.8 MB, free: 8.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1157, allocations: 3.938 kB / 421.8 MB, free: 8.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001334/0.1158, allocations: 61.62 kB / 421.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.1159, allocations: 8 kB / 421.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1159, allocations: 3.984 kB / 421.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1159, allocations: 0 / 421.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.472e-05/0.1159, allocations: 8 kB / 421.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1159, allocations: 4 kB / 421.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.909e-05/0.116, allocations: 0 / 421.8 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.116, allocations: 7.938 kB / 421.9 MB, free: 8.316 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.012e-05/0.1161, allocations: 126.5 kB / 422 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.616e-05/0.1161, allocations: 45.66 kB / 422 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.637e-05/0.1162, allocations: 16.23 kB / 422 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1162, allocations: 0 / 422 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1162, allocations: 0 / 422 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1162, allocations: 0 / 422 MB, free: 8.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001848/0.1164, allocations: 173.6 kB / 422.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1164, allocations: 0 / 422.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.119e-05/0.1164, allocations: 4 kB / 422.2 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1164, allocations: 8 kB / 422.2 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-06/0.1164, allocations: 3.984 kB / 422.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1164, allocations: 3.938 kB / 422.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1164, allocations: 4 kB / 422.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001679/0.1166, allocations: 164.3 kB / 422.4 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.895e-05/0.1167, allocations: 96.98 kB / 422.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.1167, allocations: 7.984 kB / 422.5 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.619e-05/0.1167, allocations: 4 kB / 422.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.1168, allocations: 0 / 422.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.1168, allocations: 0 / 422.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.107e-05/0.1168, allocations: 106.2 kB / 422.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1168, allocations: 0 / 422.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.1171, allocations: 7.938 kB / 422.6 MB, free: 7.453 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005538/0.1176, allocations: 0.7135 MB / 423.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.1178, allocations: 31.91 kB / 423.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1178, allocations: 4 kB / 423.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.942e-05/0.1178, allocations: 4.25 kB / 423.4 MB, free: 6.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003453/0.1181, allocations: 34.41 kB / 423.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001445/0.1196, allocations: 1.318 MB / 424.7 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003365/0.1199, allocations: 0.6922 MB / 425.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.769e-05/0.1199, allocations: 0 / 425.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.564e-05/0.12, allocations: 19.44 kB / 425.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.12, allocations: 0 / 425.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.1471, allocations: 1.481 MB / 426.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.824/7.971, allocations: 22.3 kB / 426.9 MB, free: 3.082 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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: 10.45968370186165]