Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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.001885/0.001885, allocations: 119.8 kB / 17.74 MB, free: 5.309 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.002197/0.002198, allocations: 185.3 kB / 20.68 MB, free: 2.383 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.521/1.521, allocations: 222.9 MB / 246.4 MB, free: 4.172 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.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 55.92 kB / 357.5 MB, free: 8.797 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1167, allocations: 49.44 MB / 406.9 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.003616/0.1204, allocations: 1.549 MB / 408.5 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1218, allocations: 474.7 kB / 408.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.1219, allocations: 0 / 408.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.462e-05/0.1221, allocations: 3.938 kB / 408.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.1223, allocations: 19.84 kB / 409 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.1227, allocations: 43.89 kB / 409 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.1228, allocations: 43.8 kB / 409 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.123, allocations: 19.97 kB / 409.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.1231, allocations: 27.91 kB / 409.1 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.762e-05/0.1232, allocations: 19.88 kB / 409.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.1232, allocations: 0 / 409.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.1233, allocations: 4 kB / 409.1 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.147e-05/0.1233, allocations: 15.92 kB / 409.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.972e-05/0.1234, allocations: 31.8 kB / 409.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1236, allocations: 51.97 kB / 409.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.1236, allocations: 0 / 409.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1236, allocations: 0 / 409.2 MB, free: 5.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1236, allocations: 0 / 409.2 MB, free: 5.016 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000713/0.1243, allocations: 395 kB / 409.6 MB, free: 4.582 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.1244, allocations: 8.031 kB / 409.6 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.511e-05/0.1245, allocations: 30.75 kB / 409.6 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.3e-05/0.1245, allocations: 8.891 kB / 409.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004193/0.125, allocations: 192.3 kB / 409.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.125, allocations: 8.359 kB / 409.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.125, allocations: 384 / 409.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004088/0.1255, allocations: 117.2 kB / 409.9 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.1255, allocations: 7.938 kB / 410 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.1255, allocations: 0 / 410 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1255, allocations: 0 / 410 MB, free: 4.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.1257, allocations: 19.92 kB / 410 MB, free: 4.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004781/0.1262, allocations: 269.6 kB / 410.2 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.1263, allocations: 49.16 kB / 410.3 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.932e-05/0.1264, allocations: 21.77 kB / 410.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.882e-05/0.1265, allocations: 4 kB / 410.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.1265, allocations: 34.56 kB / 410.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.714e-06/0.1265, allocations: 0 / 410.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003915/0.1269, allocations: 65.61 kB / 410.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.381e-05/0.127, allocations: 77.11 kB / 410.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.1272, allocations: 149 kB / 410.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.1273, allocations: 29.94 kB / 410.7 MB, free: 3.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.521e-05/0.1274, allocations: 92.14 kB / 410.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.695e-05/0.1274, allocations: 3.938 kB / 410.8 MB, free: 3.223 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.848e-05/0.1275, allocations: 21.67 kB / 410.8 MB, free: 3.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1277, allocations: 318.8 kB / 411.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.969e-05/0.1277, allocations: 4 kB / 411.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.409e-05/0.1278, allocations: 25.7 kB / 411.1 MB, free: 2.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.128, allocations: 33.77 kB / 411.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.128, allocations: 0 / 411.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001722/0.1282, allocations: 53.62 kB / 411.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.1282, allocations: 4 kB / 411.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1282, allocations: 0 / 411.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.1282, allocations: 4 kB / 411.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.064e-05/0.1283, allocations: 12.05 kB / 411.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1284, allocations: 0 / 411.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.969e-05/0.1284, allocations: 0 / 411.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1284, allocations: 8 kB / 411.2 MB, free: 2.715 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 0.0001074/0.1285, allocations: 117.8 kB / 411.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.445e-05/0.1286, allocations: 45.58 kB / 411.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.1287, allocations: 7.875 kB / 411.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.1287, allocations: 4 kB / 411.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1287, allocations: 4.031 kB / 411.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1287, allocations: 0 / 411.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002035/0.1289, allocations: 165.6 kB / 411.6 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1289, allocations: 0 / 411.6 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.986e-05/0.129, allocations: 11.98 kB / 411.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.129, allocations: 0 / 411.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-06/0.129, allocations: 4 kB / 411.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.129, allocations: 0 / 411.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.129, allocations: 3.938 kB / 411.6 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.1292, allocations: 168.2 kB / 411.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.007e-05/0.1293, allocations: 89.06 kB / 411.8 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.879e-05/0.1293, allocations: 3.984 kB / 411.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.484e-05/0.1294, allocations: 4 kB / 411.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-05/0.1294, allocations: 0 / 411.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.1295, allocations: 4 kB / 411.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.001e-05/0.1295, allocations: 109.7 kB / 412 MB, free: 1.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.134e-06/0.1296, allocations: 4.031 kB / 412 MB, free: 1.879 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.1298, allocations: 7.938 kB / 412 MB, free: 1.871 MB / 334.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 (2): * Single equations (assignments): 2 * 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.0005774/0.1304, allocations: 0.6975 MB / 412.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.1305, allocations: 23.98 kB / 412.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1305, allocations: 0 / 412.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.279e-05/0.1306, allocations: 8 kB / 412.7 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.1309, allocations: 23.94 kB / 412.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.1324, allocations: 1.312 MB / 414 MB, free: 15.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.1328, allocations: 0.6911 MB / 414.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.188e-05/0.1329, allocations: 7.984 kB / 414.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.1329, allocations: 11.44 kB / 414.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1329, allocations: 0 / 414.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.1597, allocations: 1.54 MB / 416.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/8.428, allocations: 13.03 kB / 416.3 MB, free: 13.52 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.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: 11.00657175690867]