Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009235/0.0009235, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008953/0.0008953, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8724/0.8724, allocations: 177.1 MB / 204.3 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 4 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.837e-05/2.097e-05, allocations: 2.281 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.00194/0.001961, allocations: 1.571 MB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006812/0.002642, allocations: 0.5025 MB / 326.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.03e-05/0.002722, allocations: 3.938 kB / 326.6 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.227e-05/0.002765, allocations: 7.922 kB / 326.6 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.002893, allocations: 11.88 kB / 326.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.003151, allocations: 63.75 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.677e-05/0.003248, allocations: 43.8 kB / 326.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.661e-05/0.003345, allocations: 20.16 kB / 326.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.003455, allocations: 27.92 kB / 326.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.603e-05/0.003501, allocations: 15.97 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.678e-05/0.003518, allocations: 4 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.709e-05/0.003555, allocations: 4 kB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.482e-05/0.0036, allocations: 19.92 kB / 326.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.557e-05/0.003626, allocations: 11.94 kB / 326.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.003767, allocations: 67.66 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.003769, allocations: 0 / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.00377, allocations: 0 / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.003774, allocations: 4 kB / 326.9 MB, free: 13.57 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003576/0.004132, allocations: 301.3 kB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.004167, allocations: 16.03 kB / 327.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.742e-05/0.004194, allocations: 34.75 kB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001004/0.004295, allocations: 16.88 kB / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.004472, allocations: 145.5 kB / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.00448, allocations: 384 / 327.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.004488, allocations: 4.375 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.004695, allocations: 117.6 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.004702, allocations: 192 / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.225e-06/0.00471, allocations: 3.938 kB / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.004715, allocations: 0 / 327.6 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.507e-05/0.00476, allocations: 23.92 kB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002265/0.004986, allocations: 220.9 kB / 327.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.727e-05/0.005044, allocations: 49.09 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.853e-05/0.005072, allocations: 21.77 kB / 327.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.005088, allocations: 4 kB / 327.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.005107, allocations: 34.56 kB / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.005108, allocations: 0 / 327.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001647/0.005272, allocations: 73.5 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.005311, allocations: 77.11 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.066e-05/0.005402, allocations: 145.6 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.038e-05/0.005412, allocations: 33.64 kB / 328.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.00545, allocations: 92.12 kB / 328.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.137e-05/0.005461, allocations: 4.203 kB / 328.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.488e-05/0.005486, allocations: 13.72 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.543e-05/0.005562, allocations: 322.8 kB / 328.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.272e-05/0.005584, allocations: 4 kB / 328.7 MB, free: 11.63 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.613e-05/0.0056, allocations: 7.984 kB / 328.7 MB, free: 11.62 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.071e-05/0.005641, allocations: 24.84 kB / 328.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.005643, allocations: 0 / 328.7 MB, free: 11.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.027e-05/0.005703, allocations: 53.67 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.005714, allocations: 8 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.005718, allocations: 0 / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.005729, allocations: 0 / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.338e-05/0.005772, allocations: 7.938 kB / 328.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.005776, allocations: 3.938 kB / 328.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.691e-05/0.005793, allocations: 7.984 kB / 328.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-06/0.005798, allocations: 0 / 328.8 MB, free: 11.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * 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 5.452e-05/0.005853, allocations: 109.8 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.422e-05/0.005887, allocations: 49.58 kB / 328.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.005911, allocations: 15.8 kB / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.005913, allocations: 0 / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.005916, allocations: 0 / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.005919, allocations: 0 / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.006024, allocations: 148.6 kB / 329.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.006026, allocations: 4 kB / 329.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.911e-05/0.006045, allocations: 7.984 kB / 329.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.006046, allocations: 0 / 329.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.006053, allocations: 4 kB / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.006054, allocations: 0 / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.006056, allocations: 3.938 kB / 329.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002153/0.006271, allocations: 168.3 kB / 329.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.665e-05/0.006298, allocations: 11.94 kB / 329.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.006309, allocations: 4 kB / 329.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.169e-05/0.006341, allocations: 0 / 329.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.006365, allocations: 4 kB / 329.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.006369, allocations: 4 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.946e-05/0.006418, allocations: 109.8 kB / 329.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.006418, allocations: 0 / 329.4 MB, free: 10.81 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001483/0.006567, allocations: 4 kB / 329.4 MB, free: 10.8 MB / 298.7 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.0002651/0.006832, allocations: 0.6975 MB / 330.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.783e-05/0.00692, allocations: 19.98 kB / 330.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.006921, allocations: 0 / 330.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.936e-05/0.006941, allocations: 12 kB / 330.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.007195, allocations: 15.95 kB / 330.1 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008269/0.008022, allocations: 1.302 MB / 331.4 MB, free: 8.641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.537e-05/0.008077, allocations: 79.08 kB / 331.5 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.667e-05/0.008104, allocations: 0 / 331.5 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.008284, allocations: 16.5 kB / 331.5 MB, free: 8.527 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.008284, allocations: 3.938 kB / 331.5 MB, free: 8.523 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01455/0.02284, allocations: 2.247 MB / 333.8 MB, free: 6.398 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.625/6.647, allocations: 0 / 333.8 MB, free: 6.398 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 8.25825447589159]