Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.001401/0.001401, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.579/1.579, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.81 kB / 306.4 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.004368/0.128, allocations: 1.957 MB / 358.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.1304, allocations: 1.177 MB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002083/0.1306, allocations: 4 kB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007628/0.1314, allocations: 147.6 kB / 360.2 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000481/0.1319, allocations: 135.1 kB / 360.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005948/0.1325, allocations: 143.7 kB / 360.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003091/0.1328, allocations: 187.4 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.133, allocations: 41.47 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/0.1332, allocations: 67.64 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.1333, allocations: 67.69 kB / 360.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.1334, allocations: 4 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.1335, allocations: 51.91 kB / 360.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.078e-05/0.1336, allocations: 39.84 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.806e-05/0.1337, allocations: 71.47 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.1341, allocations: 199.6 kB / 361.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.1341, allocations: 0 / 361.2 MB, free: 9.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1341, allocations: 7.938 kB / 361.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.408e-06/0.1341, allocations: 0 / 361.2 MB, free: 9.91 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.0009981/0.1351, allocations: 0.514 MB / 361.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.1352, allocations: 8.031 kB / 361.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.932e-05/0.1353, allocations: 34.75 kB / 361.7 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.658e-05/0.1353, allocations: 24.66 kB / 361.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.1357, allocations: 270.7 kB / 362 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.1358, allocations: 8.375 kB / 362 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.068e-05/0.1358, allocations: 7.938 kB / 362 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.1362, allocations: 146.7 kB / 362.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1362, allocations: 0 / 362.2 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.1362, allocations: 4 kB / 362.2 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.051e-06/0.1362, allocations: 0 / 362.2 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.1363, allocations: 39.91 kB / 362.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005589/0.1369, allocations: 358.4 kB / 362.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.1371, allocations: 111.9 kB / 362.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.793e-05/0.1372, allocations: 42.56 kB / 362.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.753e-05/0.1373, allocations: 0 / 362.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.1375, allocations: 79.41 kB / 362.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.913e-06/0.1375, allocations: 4 kB / 362.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003947/0.1379, allocations: 133.4 kB / 362.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.138, allocations: 140.4 kB / 363.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003007/0.1383, allocations: 276.8 kB / 363.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.1383, allocations: 29.7 kB / 363.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.605e-05/0.1384, allocations: 124.4 kB / 363.5 MB, free: 7.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.1385, allocations: 19.73 kB / 363.5 MB, free: 7.285 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.944e-05/0.1385, allocations: 29.72 kB / 363.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1387, allocations: 330.8 kB / 363.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.134e-05/0.1387, allocations: 16 kB / 363.9 MB, free: 6.902 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.527e-05/0.1388, allocations: 77.92 kB / 363.9 MB, free: 6.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.139, allocations: 68.23 kB / 364 MB, free: 6.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.139, allocations: 4 kB / 364 MB, free: 6.719 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002118/0.1392, allocations: 117.4 kB / 364.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1392, allocations: 7.938 kB / 364.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1392, allocations: 4 kB / 364.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1392, allocations: 0 / 364.1 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.667e-05/0.1393, allocations: 15.98 kB / 364.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.1394, allocations: 3.938 kB / 364.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.755e-05/0.1394, allocations: 16.16 kB / 364.2 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1395, allocations: 7.984 kB / 364.2 MB, free: 6.543 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,sample1.u,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.0001395/0.1396, allocations: 154.6 kB / 364.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.259e-05/0.1397, allocations: 65.44 kB / 364.4 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.874e-05/0.1398, allocations: 25.7 kB / 364.4 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1398, allocations: 4 kB / 364.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1398, allocations: 0 / 364.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.1398, allocations: 3.938 kB / 364.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002097/0.14, allocations: 233.4 kB / 364.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.14, allocations: 0 / 364.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.819e-05/0.1401, allocations: 4 kB / 364.7 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1401, allocations: 0 / 364.7 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1401, allocations: 12.06 kB / 364.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1401, allocations: 0 / 364.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1401, allocations: 0 / 364.7 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.1404, allocations: 154.5 kB / 364.8 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.626e-05/0.1405, allocations: 108.8 kB / 364.9 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.123e-05/0.1405, allocations: 8 kB / 364.9 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.226e-05/0.1406, allocations: 3.984 kB / 364.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/0.1406, allocations: 11.94 kB / 365 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.1406, allocations: 4 kB / 365 MB, free: 5.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.1408, allocations: 200.5 kB / 365.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1409, allocations: 7.938 kB / 365.2 MB, free: 5.453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002695/0.1411, allocations: 23.98 kB / 365.2 MB, free: 5.43 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,sample1.u,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.001444/0.1426, allocations: 1.009 MB / 366.2 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000219/0.1428, allocations: 63.92 kB / 366.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1428, allocations: 256 / 366.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.538e-05/0.1429, allocations: 35.92 kB / 366.3 MB, free: 4.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004107/0.1433, allocations: 61.44 kB / 366.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.1457, allocations: 1.974 MB / 368.3 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.146, allocations: 0.7361 MB / 369.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001059/0.1461, allocations: 25.77 kB / 369.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.168e-05/0.1462, allocations: 51.42 kB / 369.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1462, allocations: 0 / 369.1 MB, free: 1.445 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.218/0.3643, allocations: 4.293 MB / 373.4 MB, free: 19.21 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002766/0.3646, allocations: 254.3 kB / 373.7 MB, free: 18.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.249, allocations: 3.828 kB / 373.7 MB, free: 18.96 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time