Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00154/0.00154, allocations: 107.8 kB / 17.33 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001748/0.001748, allocations: 209.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.612/1.612, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001571, allocations: 59.62 kB / 306.6 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1376, allocations: 50.52 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample): time 0.004172/0.1418, allocations: 1.953 MB / 359 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.1442, allocations: 1.27 MB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001849/0.1444, allocations: 7.938 kB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002514/0.1447, allocations: 63.8 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004781/0.1452, allocations: 119.6 kB / 360.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008352/0.1461, allocations: 203.1 kB / 360.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.1464, allocations: 183.5 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.1466, allocations: 33.53 kB / 360.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001726/0.1468, allocations: 71.7 kB / 361 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.1469, allocations: 83.61 kB / 361.1 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.369e-05/0.1469, allocations: 8 kB / 361.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001754/0.1471, allocations: 67.95 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.1472, allocations: 59.77 kB / 361.2 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.1473, allocations: 83.42 kB / 361.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004157/0.1477, allocations: 235.5 kB / 361.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1478, allocations: 4 kB / 361.5 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1478, allocations: 0 / 361.5 MB, free: 9.879 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.165e-06/0.1478, allocations: 0 / 361.5 MB, free: 9.879 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.0009037/0.1487, allocations: 0.535 MB / 362 MB, free: 9.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.1488, allocations: 8.031 kB / 362 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.251e-05/0.1488, allocations: 42.73 kB / 362.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.176e-05/0.1489, allocations: 20.66 kB / 362.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.1493, allocations: 291.6 kB / 362.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.1494, allocations: 4.375 kB / 362.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.201e-05/0.1494, allocations: 11.94 kB / 362.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.1498, allocations: 155.6 kB / 362.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1498, allocations: 4 kB / 362.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1498, allocations: 0 / 362.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1498, allocations: 4 kB / 362.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001208/0.15, allocations: 31.92 kB / 362.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006131/0.1506, allocations: 398.2 kB / 363 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.1509, allocations: 115.9 kB / 363.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.254e-05/0.151, allocations: 46.56 kB / 363.1 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.025e-05/0.151, allocations: 8 kB / 363.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.1513, allocations: 79.38 kB / 363.2 MB, free: 7.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 3.897e-06/0.1513, allocations: 3.984 kB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004591/0.1518, allocations: 157.2 kB / 363.4 MB, free: 7.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.1519, allocations: 158.5 kB / 363.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.1523, allocations: 338.6 kB / 363.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.1523, allocations: 37.64 kB / 363.9 MB, free: 7.176 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.096e-05/0.1524, allocations: 124.1 kB / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.1524, allocations: 15.81 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/0.1525, allocations: 37.64 kB / 364.1 MB, free: 6.992 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1527, allocations: 330.8 kB / 364.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.576e-05/0.1528, allocations: 23.98 kB / 364.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.1529, allocations: 90.8 kB / 364.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001524/0.153, allocations: 84.22 kB / 364.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1531, allocations: 0 / 364.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002555/0.1533, allocations: 125.3 kB / 364.7 MB, free: 6.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1533, allocations: 4 kB / 364.7 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1534, allocations: 4 kB / 364.7 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1534, allocations: 3.938 kB / 364.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.1535, allocations: 19.98 kB / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.1535, allocations: 4.125 kB / 364.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.669e-05/0.1536, allocations: 15.84 kB / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.1536, allocations: 4 kB / 364.8 MB, free: 6.242 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,superSample1.y,superSample1.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.0001508/0.1538, allocations: 165.6 kB / 364.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.161e-05/0.1539, allocations: 61.5 kB / 365 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.849e-05/0.1539, allocations: 30 kB / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1539, allocations: 0 / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.154, allocations: 0 / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.154, allocations: 16 kB / 365 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002287/0.1542, allocations: 249.5 kB / 365.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1542, allocations: 0 / 365.3 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.884e-05/0.1543, allocations: 11.94 kB / 365.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1543, allocations: 4 kB / 365.3 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.1543, allocations: 3.984 kB / 365.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1543, allocations: 4 kB / 365.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.1543, allocations: 0 / 365.3 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.1546, allocations: 166.4 kB / 365.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1548, allocations: 112.9 kB / 365.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.1548, allocations: 3.938 kB / 365.6 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.069e-05/0.1549, allocations: 11.98 kB / 365.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.1549, allocations: 7.938 kB / 365.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.069e-05/0.155, allocations: 7.984 kB / 365.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002463/0.1552, allocations: 246 kB / 365.9 MB, free: 5.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1552, allocations: 7.938 kB / 365.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00031/0.1555, allocations: 35.98 kB / 365.9 MB, free: 5.016 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,superSample1.y,sample1.y,superSample1.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.001484/0.157, allocations: 1.002 MB / 366.9 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002395/0.1573, allocations: 83.83 kB / 367 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1573, allocations: 0 / 367 MB, free: 4.035 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.952e-05/0.1574, allocations: 27.98 kB / 367 MB, free: 4.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004342/0.1578, allocations: 72.36 kB / 367.1 MB, free: 3.941 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.1607, allocations: 2.254 MB / 369.3 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.1612, allocations: 0.7358 MB / 370.1 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001263/0.1613, allocations: 33.52 kB / 370.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.1614, allocations: 63.36 kB / 370.2 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1615, allocations: 0 / 370.2 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.312/0.4735, allocations: 5.099 MB / 375.3 MB, free: 19.61 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002528/0.4738, allocations: 257.5 kB / 375.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.148/2.622, allocations: 0 / 375.5 MB, free: 19.32 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SuperSample/SuperSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.SuperSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,superSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,superSample1.factor,superSample1.inferFactor,superSample1.u,superSample1.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