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.0008463/0.0008463, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0009486/0.0009486, allocations: 170 kB / 23.95 MB, free: 0.6133 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.858/0.858, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.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 1.633e-06/1.633e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.275e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002538/0.002561, allocations: 1.876 MB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.004067, allocations: 1.214 MB / 327.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.004188, allocations: 3.938 kB / 327.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.004495, allocations: 67.61 kB / 327.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003326/0.004827, allocations: 143.4 kB / 327.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004904/0.005318, allocations: 226.5 kB / 328.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.005544, allocations: 187.4 kB / 328.3 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.00565, allocations: 21.73 kB / 328.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.005768, allocations: 99.73 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.005865, allocations: 79.77 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.968e-05/0.005885, allocations: 12 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.006005, allocations: 63.89 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.059e-05/0.006076, allocations: 55.83 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.085e-05/0.006126, allocations: 47.78 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.006373, allocations: 235.2 kB / 328.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.006376, allocations: 0 / 328.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.006377, allocations: 3.938 kB / 328.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.006381, allocations: 0 / 328.9 MB, free: 11.62 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005381/0.006919, allocations: 477.8 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.006954, allocations: 16.03 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.872e-05/0.006983, allocations: 34.75 kB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.886e-05/0.007042, allocations: 28.78 kB / 329.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.007365, allocations: 232.7 kB / 329.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.007379, allocations: 4.375 kB / 329.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.374e-05/0.007393, allocations: 8.375 kB / 329.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.007685, allocations: 180.7 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.007694, allocations: 0 / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.007706, allocations: 4 kB / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.007711, allocations: 0 / 329.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.707e-05/0.007788, allocations: 43.91 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.008169, allocations: 341.5 kB / 330.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.008329, allocations: 115.9 kB / 330.3 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.525e-05/0.008384, allocations: 50.56 kB / 330.4 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.008404, allocations: 4 kB / 330.4 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.00853, allocations: 79.31 kB / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 8.32e-07/0.008531, allocations: 0 / 330.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000265/0.008796, allocations: 157.4 kB / 330.6 MB, free: 9.684 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.008856, allocations: 136.5 kB / 330.7 MB, free: 9.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002225/0.009078, allocations: 333.9 kB / 331.1 MB, free: 9.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.009091, allocations: 29.7 kB / 331.1 MB, free: 9.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/0.009158, allocations: 132.3 kB / 331.2 MB, free: 9.012 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.009177, allocations: 23.84 kB / 331.2 MB, free: 8.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.009212, allocations: 25.7 kB / 331.3 MB, free: 8.957 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.07e-05/0.009303, allocations: 334.8 kB / 331.6 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.99e-05/0.009343, allocations: 23.98 kB / 331.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.087e-05/0.009414, allocations: 130.7 kB / 331.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.584e-05/0.00949, allocations: 57.95 kB / 331.8 MB, free: 8.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.009491, allocations: 0 / 331.8 MB, free: 8.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001201/0.009612, allocations: 109.5 kB / 331.9 MB, free: 8.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.009623, allocations: 12.06 kB / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.009627, allocations: 0 / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.009638, allocations: 0 / 331.9 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.041e-05/0.009699, allocations: 15.98 kB / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.009703, allocations: 0 / 331.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.068e-05/0.009744, allocations: 11.94 kB / 332 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.00975, allocations: 0 / 332 MB, free: 8.23 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 9.812e-05/0.009848, allocations: 158.7 kB / 332.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.934e-05/0.009897, allocations: 61.56 kB / 332.2 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001668/0.01006, allocations: 135.5 kB / 332.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.01007, allocations: 4 kB / 332.3 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.01007, allocations: 0 / 332.3 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.01007, allocations: 3.984 kB / 332.3 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.01021, allocations: 204.6 kB / 332.5 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.01021, allocations: 0 / 332.5 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.665e-05/0.01025, allocations: 12 kB / 332.5 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.01025, allocations: 0 / 332.5 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.01026, allocations: 8 kB / 332.5 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.01026, allocations: 3.984 kB / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.01026, allocations: 4 kB / 332.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.01042, allocations: 170.5 kB / 332.7 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.194e-05/0.01047, allocations: 43.78 kB / 332.7 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.01049, allocations: 64 / 332.7 MB, free: 7.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.632e-05/0.01052, allocations: 11.98 kB / 332.8 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.366e-05/0.01057, allocations: 12.08 kB / 332.8 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.01058, allocations: 7.938 kB / 332.8 MB, free: 7.324 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001507/0.01073, allocations: 249.2 kB / 333 MB, free: 7.086 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01073, allocations: 0 / 333 MB, free: 7.086 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001773/0.01091, allocations: 39.86 kB / 333.1 MB, free: 7.047 MB / 298.7 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.0009507/0.01186, allocations: 1.057 MB / 334.1 MB, free: 6.141 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.012, allocations: 67.91 kB / 334.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.012, allocations: 0 / 334.2 MB, free: 6.074 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.619e-05/0.01205, allocations: 27.98 kB / 334.2 MB, free: 6.047 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.0123, allocations: 63.47 kB / 334.3 MB, free: 5.984 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.01389, allocations: 2.192 MB / 336.5 MB, free: 3.684 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.219e-05/0.01397, allocations: 131.9 kB / 336.6 MB, free: 3.535 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.687e-05/0.01403, allocations: 29.61 kB / 336.6 MB, free: 3.508 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.058e-05/0.0141, allocations: 68.47 kB / 336.7 MB, free: 3.441 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.0141, allocations: 0 / 336.7 MB, free: 3.441 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.03173, allocations: 6.153 MB / 342.8 MB, free: 13.34 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.76/6.792, allocations: 18.75 kB / 342.9 MB, free: 13.33 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/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] "" Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time [Calling sys.exit(0), Time elapsed: 8.414496157318354]