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.001266/0.001266, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001403/0.001403, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.562/1.562, allocations: 230.6 MB / 257.5 MB, free: 8 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.001669/0.001669, allocations: 55.91 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3042, allocations: 53.35 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.004078/0.3082, allocations: 1.923 MB / 433.1 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.3106, allocations: 1.301 MB / 434.4 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.3108, allocations: 7.938 kB / 434.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003456/0.3112, allocations: 71.67 kB / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000433/0.3116, allocations: 135.4 kB / 434.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007566/0.3123, allocations: 226.9 kB / 434.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.3127, allocations: 187.4 kB / 435 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.3128, allocations: 21.75 kB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.3129, allocations: 79.69 kB / 435.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.3131, allocations: 87.55 kB / 435.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.698e-05/0.3131, allocations: 12 kB / 435.2 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.3133, allocations: 67.95 kB / 435.2 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.3134, allocations: 55.81 kB / 435.3 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.88e-05/0.3135, allocations: 79.42 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004195/0.3139, allocations: 243.4 kB / 435.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.836e-06/0.3139, allocations: 4 kB / 435.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3139, allocations: 0 / 435.6 MB, free: 2.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.3139, allocations: 0 / 435.6 MB, free: 2.363 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.0008349/0.3148, allocations: 478.5 kB / 436.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3148, allocations: 8.031 kB / 436.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.599e-05/0.3149, allocations: 42.73 kB / 436.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.291e-05/0.3149, allocations: 24.8 kB / 436.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004841/0.3154, allocations: 225.5 kB / 436.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3155, allocations: 8.375 kB / 436.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.747e-05/0.3155, allocations: 11.94 kB / 436.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.3158, allocations: 159.5 kB / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3159, allocations: 0 / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.3159, allocations: 0 / 436.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.3159, allocations: 8 kB / 436.5 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001224/0.316, allocations: 35.97 kB / 436.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006284/0.3166, allocations: 365.3 kB / 436.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002673/0.3169, allocations: 107.9 kB / 437 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.708e-05/0.317, allocations: 46.56 kB / 437.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.317, allocations: 0 / 437.1 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002028/0.3172, allocations: 91.31 kB / 437.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.3172, allocations: 0 / 437.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004174/0.3176, allocations: 153.4 kB / 437.3 MB, free: 444 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.3178, allocations: 154.2 kB / 437.5 MB, free: 252 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004205/0.3182, allocations: 337.8 kB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.3182, allocations: 29.95 kB / 437.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/0.3183, allocations: 140 kB / 438 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/0.3184, allocations: 15.91 kB / 438 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.839e-05/0.3184, allocations: 33.7 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.3186, allocations: 334.8 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.753e-05/0.3187, allocations: 23.98 kB / 438.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.3188, allocations: 86.86 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.319, allocations: 84.22 kB / 438.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.319, allocations: 0 / 438.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002598/0.3192, allocations: 133.4 kB / 438.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3192, allocations: 4 kB / 438.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.3192, allocations: 3.938 kB / 438.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3193, allocations: 4 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.3194, allocations: 15.98 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3194, allocations: 4 kB / 438.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.369e-05/0.3195, allocations: 15.88 kB / 438.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.3195, allocations: 4 kB / 438.7 MB, free: 14.93 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.0001693/0.3196, allocations: 165.9 kB / 438.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.466e-05/0.3197, allocations: 69.45 kB / 439 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.32, allocations: 119.7 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.32, allocations: 4.062 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.32, allocations: 4 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.32, allocations: 3.938 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002308/0.3203, allocations: 208.7 kB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.3203, allocations: 12.05 kB / 439.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.366e-05/0.3203, allocations: 8 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.3203, allocations: 0 / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.3203, allocations: 8 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3203, allocations: 3.938 kB / 439.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3204, allocations: 3.984 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002875/0.3206, allocations: 166.6 kB / 439.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.015e-05/0.3207, allocations: 35.83 kB / 439.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.661e-05/0.3208, allocations: 8 kB / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.427e-05/0.3208, allocations: 0 / 439.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.275e-05/0.3209, allocations: 15.92 kB / 439.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.736e-05/0.3209, allocations: 4 kB / 439.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002744/0.3212, allocations: 249.2 kB / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3212, allocations: 0 / 439.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000291/0.3215, allocations: 35.94 kB / 439.8 MB, free: 13.73 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 (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.002119/0.3236, allocations: 1.016 MB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002451/0.3238, allocations: 79.84 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3238, allocations: 0 / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.019e-05/0.3239, allocations: 27.92 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.3243, allocations: 69.75 kB / 441 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.3272, allocations: 2.226 MB / 443.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.3276, allocations: 0.7554 MB / 444 MB, free: 9.543 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.729e-05/0.3277, allocations: 25.47 kB / 444 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.3278, allocations: 63.39 kB / 444.1 MB, free: 9.453 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3278, allocations: 4 kB / 444.1 MB, free: 9.449 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03444/0.3623, allocations: 5.487 MB / 449.6 MB, free: 4.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.56, allocations: 15.52 kB / 449.6 MB, free: 4.031 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.162456795107573]