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.001224/0.001224, allocations: 124.4 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.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.001394/0.001394, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.426/1.426, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001494/0.001494, allocations: 47.94 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.1004, allocations: 53.34 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003331/0.1037, allocations: 1.907 MB / 428.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.1058, allocations: 1.286 MB / 429.5 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1059, allocations: 4 kB / 429.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003053/0.1063, allocations: 75.59 kB / 429.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003431/0.1066, allocations: 127.4 kB / 429.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.1073, allocations: 219 kB / 429.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.1075, allocations: 183.5 kB / 430.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.1076, allocations: 21.55 kB / 430.1 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1078, allocations: 83.62 kB / 430.2 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.1079, allocations: 87.61 kB / 430.3 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.1079, allocations: 8 kB / 430.3 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.1081, allocations: 71.94 kB / 430.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.687e-05/0.1082, allocations: 51.78 kB / 430.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.1083, allocations: 83.41 kB / 430.5 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003613/0.1086, allocations: 239 kB / 430.7 MB, free: 372 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.1086, allocations: 4 kB / 430.7 MB, free: 368 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1086, allocations: 4 kB / 430.7 MB, free: 364 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.1086, allocations: 0 / 430.7 MB, free: 364 kB / 350.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.1744/0.283, allocations: 0.5365 MB / 431.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.2831, allocations: 12.78 kB / 431.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.616e-05/0.2831, allocations: 36.44 kB / 431.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.84e-05/0.2832, allocations: 24.86 kB / 431.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.2836, allocations: 293.8 kB / 431.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.2836, allocations: 4.719 kB / 431.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.762e-05/0.2836, allocations: 8.719 kB / 431.6 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.284, allocations: 157.3 kB / 431.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.284, allocations: 5.062 kB / 431.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.284, allocations: 1.719 kB / 431.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.284, allocations: 0.9375 kB / 431.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.2841, allocations: 38.8 kB / 431.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00045/0.2846, allocations: 389.7 kB / 432.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002299/0.2848, allocations: 118.8 kB / 432.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.821e-05/0.2849, allocations: 40.78 kB / 432.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.2849, allocations: 2.938 kB / 432.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.2851, allocations: 85.03 kB / 432.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.2851, allocations: 0 / 432.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003806/0.2854, allocations: 155.3 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.2855, allocations: 160.2 kB / 432.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.2858, allocations: 342.9 kB / 433.1 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.2858, allocations: 29.5 kB / 433.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.2859, allocations: 131.6 kB / 433.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.2e-05/0.2859, allocations: 22.38 kB / 433.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.789e-05/0.286, allocations: 31.19 kB / 433.3 MB, free: 10 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.286, allocations: 336.5 kB / 433.6 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.709e-05/0.2861, allocations: 21.89 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.827e-05/0.2862, allocations: 85.23 kB / 433.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.2863, allocations: 88.33 kB / 433.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2863, allocations: 0 / 433.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000197/0.2865, allocations: 126.3 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2865, allocations: 6.5 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2865, allocations: 0.9375 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2865, allocations: 1.75 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.2867, allocations: 20.86 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.261e-06/0.2867, allocations: 3.188 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.298e-05/0.2867, allocations: 10.81 kB / 434 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.2867, allocations: 4.344 kB / 434 MB, free: 9.543 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.0001044/0.2869, allocations: 155.5 kB / 434.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.58e-05/0.2869, allocations: 74.8 kB / 434.2 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.089e-05/0.287, allocations: 30.83 kB / 434.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-06/0.287, allocations: 4.781 kB / 434.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.287, allocations: 1.094 kB / 434.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.287, allocations: 1.062 kB / 434.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.2872, allocations: 248.2 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.2872, allocations: 3.922 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.387e-05/0.2872, allocations: 15.69 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2872, allocations: 1.125 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2872, allocations: 6.766 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2872, allocations: 1.031 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2872, allocations: 2.375 kB / 434.5 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.2875, allocations: 174.6 kB / 434.7 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.731e-05/0.2875, allocations: 108.8 kB / 434.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.2876, allocations: 7.172 kB / 434.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.38e-05/0.2876, allocations: 5.609 kB / 434.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.2877, allocations: 7.703 kB / 434.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.2877, allocations: 6.797 kB / 434.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001942/0.2879, allocations: 244.1 kB / 435.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2879, allocations: 0 / 435.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002613/0.2882, allocations: 42.8 kB / 435.1 MB, free: 8.883 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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: 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.001772/0.2899, allocations: 1.014 MB / 436.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002222/0.2901, allocations: 69.92 kB / 436.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.2901, allocations: 1.406 kB / 436.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.633e-05/0.2902, allocations: 32.48 kB / 436.2 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.2906, allocations: 62.81 kB / 436.3 MB, free: 8.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.2928, allocations: 2.242 MB / 438.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001916/0.293, allocations: 0.7394 MB / 439.3 MB, free: 6.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.2931, allocations: 27.14 kB / 439.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.634e-05/0.2932, allocations: 63.89 kB / 439.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2932, allocations: 0 / 439.4 MB, free: 5.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.3237, allocations: 5.335 MB / 444.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.236, allocations: 5.094 kB / 444.7 MB, free: 5.125 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.61060069897212]