Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 110.6 kB / 17.33 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001238/0.001238, allocations: 209.8 kB / 18.27 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.573/1.573, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 65.83 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1327, allocations: 50.53 MB / 357.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.005434/0.1382, allocations: 1.938 MB / 359 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003179/0.1414, allocations: 1.251 MB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002688/0.1417, allocations: 4 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006268/0.1425, allocations: 63.8 kB / 360.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007277/0.1432, allocations: 111.6 kB / 360.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.1445, allocations: 199.1 kB / 360.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.145, allocations: 187.5 kB / 360.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001897/0.1452, allocations: 25.55 kB / 360.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.1454, allocations: 75.69 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1456, allocations: 87.61 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.617e-05/0.1457, allocations: 8 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002604/0.146, allocations: 63.95 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.1461, allocations: 51.78 kB / 361.1 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001324/0.1463, allocations: 83.42 kB / 361.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005743/0.1468, allocations: 239.5 kB / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1469, allocations: 0 / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1469, allocations: 0 / 361.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.806e-05/0.1469, allocations: 0 / 361.5 MB, free: 9.922 MB / 302.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.001208/0.1481, allocations: 0.5388 MB / 362 MB, free: 9.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.329e-05/0.1482, allocations: 12.03 kB / 362 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.245e-05/0.1483, allocations: 34.75 kB / 362 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.1485, allocations: 28.59 kB / 362.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005903/0.1491, allocations: 287.6 kB / 362.4 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.1491, allocations: 8.375 kB / 362.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.1492, allocations: 11.92 kB / 362.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005349/0.1497, allocations: 151.6 kB / 362.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.447e-05/0.1497, allocations: 4 kB / 362.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.1498, allocations: 7.984 kB / 362.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1498, allocations: 0 / 362.5 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001652/0.15, allocations: 35.92 kB / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008332/0.1508, allocations: 394.2 kB / 363 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.1512, allocations: 123.9 kB / 363.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.1514, allocations: 42.56 kB / 363.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.1514, allocations: 8 kB / 363.1 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003602/0.1518, allocations: 75.38 kB / 363.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.654e-06/0.1518, allocations: 0 / 363.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0006758/0.1525, allocations: 153.2 kB / 363.3 MB, free: 7.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.1526, allocations: 166.5 kB / 363.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005657/0.1532, allocations: 338.6 kB / 363.8 MB, free: 7.254 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.1533, allocations: 25.7 kB / 363.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.1534, allocations: 128.1 kB / 364 MB, free: 7.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.1535, allocations: 23.73 kB / 364 MB, free: 7.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.808e-05/0.1536, allocations: 29.7 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.1538, allocations: 330.8 kB / 364.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.1539, allocations: 19.98 kB / 364.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.1541, allocations: 94.78 kB / 364.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.1544, allocations: 84.22 kB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1544, allocations: 0 / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004613/0.1549, allocations: 121.3 kB / 364.7 MB, free: 6.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.1549, allocations: 8 kB / 364.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.155, allocations: 0 / 364.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.828e-05/0.155, allocations: 4 kB / 364.7 MB, free: 6.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001751/0.1552, allocations: 19.92 kB / 364.7 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.1552, allocations: 4 kB / 364.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1554, allocations: 19.95 kB / 364.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.1554, allocations: 8 kB / 364.7 MB, free: 6.281 MB / 302.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.0002202/0.1556, allocations: 158 kB / 364.9 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.1558, allocations: 69.44 kB / 365 MB, free: 6.043 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.932e-05/0.1559, allocations: 25.7 kB / 365 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1559, allocations: 4 kB / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.1559, allocations: 0 / 365 MB, free: 6.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1559, allocations: 4 kB / 365 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003466/0.1563, allocations: 249.5 kB / 365.2 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1563, allocations: 3.938 kB / 365.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.1564, allocations: 15.92 kB / 365.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.1565, allocations: 0 / 365.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.1565, allocations: 8 kB / 365.3 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.1565, allocations: 0 / 365.3 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.1565, allocations: 0 / 365.3 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004482/0.157, allocations: 170.4 kB / 365.4 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.1572, allocations: 112.8 kB / 365.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.131e-05/0.1572, allocations: 8 kB / 365.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001041/0.1574, allocations: 0 / 365.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.1575, allocations: 19.92 kB / 365.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.624e-05/0.1575, allocations: 4 kB / 365.6 MB, free: 5.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003793/0.1579, allocations: 245.9 kB / 365.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1579, allocations: 0 / 365.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004617/0.1584, allocations: 40 kB / 365.9 MB, free: 5.062 MB / 302.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.002204/0.1606, allocations: 1.013 MB / 366.9 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.161, allocations: 79.84 kB / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/0.161, allocations: 4 kB / 366.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.1612, allocations: 35.91 kB / 367 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.1618, allocations: 69.22 kB / 367.1 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004703/0.1666, allocations: 2.254 MB / 369.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.1671, allocations: 0.7397 MB / 370 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.1673, allocations: 25.55 kB / 370.1 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.1674, allocations: 59.41 kB / 370.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1674, allocations: 0 / 370.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3009/0.4683, allocations: 5.096 MB / 375.2 MB, free: 19.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/0.4686, allocations: 256.9 kB / 375.5 MB, free: 19.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.248/2.717, allocations: 4 kB / 375.5 MB, free: 19.34 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " 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