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.001333/0.001341, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001946/0.001946, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 60.62 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1119, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00383/0.1158, allocations: 1.895 MB / 359.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.1179, allocations: 1.196 MB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001986/0.1182, allocations: 3.938 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007242/0.1189, allocations: 147.5 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000509/0.1194, allocations: 159.4 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005573/0.12, allocations: 170.6 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.1203, allocations: 195.5 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.1205, allocations: 37.52 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.1206, allocations: 75.69 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1207, allocations: 71.69 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.1208, allocations: 15.94 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.1209, allocations: 51.92 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.121, allocations: 43.89 kB / 361.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.903e-05/0.1211, allocations: 67.48 kB / 361.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.1214, allocations: 215.6 kB / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1214, allocations: 0 / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1214, allocations: 0 / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.1215, allocations: 0 / 361.9 MB, free: 9.688 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.0009189/0.1224, allocations: 0.5079 MB / 362.4 MB, free: 9.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.451e-05/0.1224, allocations: 11.97 kB / 362.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.732e-05/0.1225, allocations: 46.73 kB / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.687e-05/0.1226, allocations: 20.66 kB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.1229, allocations: 266.8 kB / 362.7 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.123, allocations: 8.375 kB / 362.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.123, allocations: 7.938 kB / 362.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003705/0.1234, allocations: 150.7 kB / 362.9 MB, free: 8.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.1234, allocations: 4 kB / 362.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.1234, allocations: 0 / 362.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.1234, allocations: 0 / 362.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001119/0.1236, allocations: 27.98 kB / 362.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006419/0.1242, allocations: 370.3 kB / 363.3 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002461/0.1245, allocations: 103.9 kB / 363.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.1246, allocations: 50.56 kB / 363.5 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.1246, allocations: 4 kB / 363.5 MB, free: 7.906 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001858/0.1248, allocations: 79.31 kB / 363.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.814e-06/0.1248, allocations: 0 / 363.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004005/0.1252, allocations: 137.4 kB / 363.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.682e-05/0.1253, allocations: 136.8 kB / 363.8 MB, free: 7.512 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.1257, allocations: 280.8 kB / 364.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.1257, allocations: 29.7 kB / 364.1 MB, free: 7.195 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.1258, allocations: 116.1 kB / 364.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.905e-05/0.1258, allocations: 23.73 kB / 364.2 MB, free: 7.055 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.313e-05/0.1259, allocations: 29.7 kB / 364.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.126, allocations: 322.8 kB / 364.6 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.952e-05/0.1261, allocations: 31.92 kB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.5e-05/0.1262, allocations: 66 kB / 364.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.1264, allocations: 80.25 kB / 364.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.1264, allocations: 0 / 364.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002101/0.1266, allocations: 113.4 kB / 364.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1266, allocations: 8 kB / 364.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1266, allocations: 0 / 364.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.1267, allocations: 0 / 364.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.1267, allocations: 12 kB / 364.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.1268, allocations: 4.125 kB / 364.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.883e-05/0.1268, allocations: 19.83 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.1269, allocations: 8 kB / 364.9 MB, free: 6.316 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.0001325/0.127, allocations: 145.7 kB / 365.1 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-05/0.1271, allocations: 57.45 kB / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.156e-05/0.1272, allocations: 25.69 kB / 365.1 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1272, allocations: 4 kB / 365.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1272, allocations: 4.062 kB / 365.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1272, allocations: 3.938 kB / 365.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.1274, allocations: 237.7 kB / 365.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1274, allocations: 0 / 365.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.787e-05/0.1275, allocations: 11.94 kB / 365.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1275, allocations: 0 / 365.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.1275, allocations: 4 kB / 365.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1275, allocations: 3.984 kB / 365.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1275, allocations: 0 / 365.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.1277, allocations: 158.5 kB / 365.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.923e-05/0.1278, allocations: 104.8 kB / 365.7 MB, free: 5.465 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.551e-05/0.1279, allocations: 11.98 kB / 365.7 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.972e-05/0.1279, allocations: 4 kB / 365.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.128, allocations: 3.938 kB / 365.7 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.128, allocations: 7.984 kB / 365.7 MB, free: 5.438 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001993/0.1282, allocations: 208.4 kB / 365.9 MB, free: 5.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1282, allocations: 4 kB / 365.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002511/0.1285, allocations: 24 kB / 365.9 MB, free: 5.203 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.001339/0.1298, allocations: 1 MB / 366.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002239/0.1301, allocations: 67.91 kB / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1301, allocations: 0 / 367 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.323e-05/0.1302, allocations: 31.92 kB / 367 MB, free: 4.207 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.1306, allocations: 66.19 kB / 367.1 MB, free: 4.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.1329, allocations: 1.945 MB / 369 MB, free: 2.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003399/0.1332, allocations: 0.7319 MB / 369.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.273e-05/0.1333, allocations: 17.55 kB / 369.8 MB, free: 1.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.886e-05/0.1334, allocations: 55.42 kB / 369.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1335, allocations: 0 / 369.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2012/0.3346, allocations: 4.534 MB / 374.4 MB, free: 19.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.714/8.049, allocations: 3.781 kB / 374.4 MB, free: 19.58 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