Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008864/0.0008864, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007971/0.0007971, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9323/0.9323, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.26e-05/1.409e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.00232/0.002334, allocations: 1.84 MB / 320.3 MB, free: 4.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.003725, allocations: 1.067 MB / 321.3 MB, free: 3.426 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.003847, allocations: 7.875 kB / 321.3 MB, free: 3.418 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.004178, allocations: 63.72 kB / 321.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002565/0.004435, allocations: 99.52 kB / 321.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006188/0.005054, allocations: 264.2 kB / 321.8 MB, free: 3.004 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002694/0.005323, allocations: 175.4 kB / 321.9 MB, free: 2.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.00543, allocations: 25.78 kB / 322 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.005556, allocations: 99.72 kB / 322.1 MB, free: 2.707 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.878e-05/0.005655, allocations: 75.78 kB / 322.1 MB, free: 2.633 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.005675, allocations: 8 kB / 322.1 MB, free: 2.625 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.005812, allocations: 71.88 kB / 322.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.953e-05/0.005881, allocations: 55.78 kB / 322.3 MB, free: 2.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.405e-05/0.005935, allocations: 35.84 kB / 322.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.006206, allocations: 243.1 kB / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.006208, allocations: 0 / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.006209, allocations: 0 / 322.5 MB, free: 2.227 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.006214, allocations: 0 / 322.5 MB, free: 2.227 MB / 282.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.0007161/0.00693, allocations: 462.7 kB / 323 MB, free: 1.738 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.006968, allocations: 12.92 kB / 323 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.284e-05/0.007001, allocations: 38.75 kB / 323 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.079e-05/0.007052, allocations: 32.69 kB / 323.1 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.007319, allocations: 220.8 kB / 323.3 MB, free: 1.402 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.007331, allocations: 4.375 kB / 323.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.007344, allocations: 8.375 kB / 323.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000272/0.007616, allocations: 180.7 kB / 323.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.007625, allocations: 0 / 323.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.007637, allocations: 4 kB / 323.5 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.007642, allocations: 0 / 323.5 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.493e-05/0.007717, allocations: 43.91 kB / 323.5 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004513/0.008168, allocations: 341.5 kB / 323.9 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.008337, allocations: 115.9 kB / 324 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.599e-05/0.008393, allocations: 50.5 kB / 324 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.008413, allocations: 8 kB / 324 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.00854, allocations: 71.38 kB / 324.1 MB, free: 476 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.412e-06/0.008542, allocations: 0 / 324.1 MB, free: 476 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002584/0.0088, allocations: 161.4 kB / 324.3 MB, free: 308 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.008868, allocations: 136.5 kB / 324.4 MB, free: 140 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002427/0.009111, allocations: 325.9 kB / 324.7 MB, free: 15.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.009127, allocations: 29.7 kB / 324.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/0.009196, allocations: 128.3 kB / 324.9 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.009215, allocations: 19.91 kB / 324.9 MB, free: 15.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.009251, allocations: 25.7 kB / 324.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.101e-05/0.009332, allocations: 334.8 kB / 325.2 MB, free: 15.26 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.075e-05/0.009373, allocations: 23.92 kB / 325.3 MB, free: 15.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.585e-05/0.009439, allocations: 118.8 kB / 325.4 MB, free: 15.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.855e-05/0.009517, allocations: 65.89 kB / 325.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.009519, allocations: 0 / 325.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001266/0.009646, allocations: 101.6 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.009659, allocations: 4.062 kB / 325.5 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.009663, allocations: 8 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.009674, allocations: 3.938 kB / 325.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.666e-05/0.00974, allocations: 11.98 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.009745, allocations: 4 kB / 325.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.566e-05/0.009791, allocations: 15.89 kB / 325.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.009797, allocations: 0 / 325.6 MB, free: 14.88 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.806e-05/0.009895, allocations: 157.7 kB / 325.7 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.121e-05/0.009946, allocations: 65.5 kB / 325.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001638/0.01011, allocations: 135.7 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-06/0.01011, allocations: 0 / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.01012, allocations: 0 / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01012, allocations: 4 kB / 325.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001268/0.01025, allocations: 196.6 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01025, allocations: 0 / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.305e-05/0.01029, allocations: 19.92 kB / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.01029, allocations: 0 / 326.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.0103, allocations: 4 kB / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.0103, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.0103, allocations: 0 / 326.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001534/0.01046, allocations: 178.5 kB / 326.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.2e-05/0.01051, allocations: 39.83 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.953e-05/0.01053, allocations: 4 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.348e-05/0.01056, allocations: 8.062 kB / 326.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.653e-05/0.01061, allocations: 11.98 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.185e-05/0.01062, allocations: 4 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001557/0.01078, allocations: 245.2 kB / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01078, allocations: 0 / 326.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001807/0.01096, allocations: 31.94 kB / 326.7 MB, free: 13.7 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.001025/0.01198, allocations: 1.056 MB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001674/0.01215, allocations: 67.91 kB / 327.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.01215, allocations: 0 / 327.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.777e-05/0.0122, allocations: 31.92 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.01245, allocations: 67.48 kB / 327.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001742/0.0142, allocations: 2.152 MB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.906e-05/0.01429, allocations: 131.9 kB / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.653e-05/0.01436, allocations: 25.62 kB / 330.2 MB, free: 10.22 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.796e-05/0.01444, allocations: 64.47 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01444, allocations: 0 / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01862/0.03306, allocations: 6.053 MB / 336.3 MB, free: 4.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.094/7.127, allocations: 17 kB / 336.3 MB, free: 4.148 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.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.89316001161933]