Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.00135/0.00135, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001567/0.001567, allocations: 214.4 kB / 23.72 MB, free: 4.531 MB / 14.72 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 1.43/1.43, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 43.92 kB / 377.7 MB, free: 2.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2674, allocations: 53.36 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003401/0.2708, allocations: 1.878 MB / 432.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.2728, allocations: 1.204 MB / 434.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2729, allocations: 7.938 kB / 434.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003045/0.2732, allocations: 67.67 kB / 434.2 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.2736, allocations: 131.4 kB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006345/0.2742, allocations: 238.3 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002618/0.2745, allocations: 179.5 kB / 434.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.2746, allocations: 21.73 kB / 434.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.2747, allocations: 75.7 kB / 434.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.2749, allocations: 87.66 kB / 434.9 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.2749, allocations: 8 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.2751, allocations: 75.89 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.254e-05/0.2752, allocations: 55.77 kB / 435.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.872e-05/0.2752, allocations: 55.61 kB / 435.1 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003649/0.2756, allocations: 252.6 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2756, allocations: 0 / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2756, allocations: 0 / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.2756, allocations: 7.938 kB / 435.4 MB, free: 2.316 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007753/0.2764, allocations: 478.5 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.2764, allocations: 8.031 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.517e-05/0.2765, allocations: 34.75 kB / 435.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.423e-05/0.2766, allocations: 28.8 kB / 435.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.277, allocations: 229.5 kB / 436.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.277, allocations: 8.375 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.277, allocations: 7.938 kB / 436.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003613/0.2774, allocations: 172.4 kB / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2774, allocations: 0 / 436.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.2774, allocations: 4 kB / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.006e-06/0.2774, allocations: 7.984 kB / 436.3 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.2776, allocations: 35.92 kB / 436.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005347/0.2781, allocations: 345.5 kB / 436.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.2784, allocations: 119.8 kB / 436.8 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.741e-05/0.2785, allocations: 46.56 kB / 436.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.2785, allocations: 3.984 kB / 436.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.2787, allocations: 83.38 kB / 437 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.452e-06/0.2787, allocations: 0 / 437 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.00041/0.2791, allocations: 165.5 kB / 437.1 MB, free: 380 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.491e-05/0.2792, allocations: 132.5 kB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.2796, allocations: 345.7 kB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.2796, allocations: 25.7 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.2797, allocations: 136 kB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.991e-05/0.2797, allocations: 19.89 kB / 437.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.696e-05/0.2798, allocations: 33.7 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2799, allocations: 326.8 kB / 438.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.702e-05/0.28, allocations: 23.98 kB / 438.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.2802, allocations: 133.5 kB / 438.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.2803, allocations: 92.19 kB / 438.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2803, allocations: 0 / 438.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002481/0.2806, allocations: 129.5 kB / 438.5 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2806, allocations: 4 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2806, allocations: 0 / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.2806, allocations: 8.125 kB / 438.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.2807, allocations: 23.92 kB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.2807, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001344/0.2809, allocations: 7.938 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2809, allocations: 8 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001589/0.281, allocations: 153.8 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.2811, allocations: 69.45 kB / 438.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002937/0.2814, allocations: 127.3 kB / 438.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2814, allocations: 12 kB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.2814, allocations: 0 / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.2814, allocations: 4.25 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002263/0.2817, allocations: 204.8 kB / 439.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2817, allocations: 4 kB / 439.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.337e-05/0.2818, allocations: 15.98 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2818, allocations: 3.938 kB / 439.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.2818, allocations: 4 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2818, allocations: 4 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2818, allocations: 80 / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.2821, allocations: 182.5 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/0.2822, allocations: 35.83 kB / 439.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.705e-05/0.2822, allocations: 8 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.738e-05/0.2823, allocations: 4 kB / 439.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.648e-05/0.2823, allocations: 11.92 kB / 439.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.2823, allocations: 11.98 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.2826, allocations: 241.2 kB / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2826, allocations: 0 / 439.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.2829, allocations: 39.92 kB / 439.7 MB, free: 13.63 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002093/0.2849, allocations: 1.062 MB / 440.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.2852, allocations: 71.91 kB / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2852, allocations: 0 / 440.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.048e-05/0.2853, allocations: 31.92 kB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.2857, allocations: 71.53 kB / 440.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002577/0.2883, allocations: 2.24 MB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.2884, allocations: 139.8 kB / 443.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.869e-05/0.2885, allocations: 29.62 kB / 443.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.2886, allocations: 59.41 kB / 443.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2886, allocations: 0 / 443.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03341/0.322, allocations: 6.086 MB / 449.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.79, allocations: 11.8 kB / 449.5 MB, free: 3.934 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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: 13.210104193974985]