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.0007997/0.0007998, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000831/0.000831, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.22/1.22, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002297/0.0002297, allocations: 11.94 kB / 307.8 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08919, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00203/0.09127, allocations: 1.607 MB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.09294, allocations: 1.15 MB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.016e-05/0.09305, allocations: 4 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005203/0.09358, allocations: 147.6 kB / 362.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002999/0.09389, allocations: 131.6 kB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.09429, allocations: 147.1 kB / 362.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.09451, allocations: 191.4 kB / 362.7 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.669e-05/0.09462, allocations: 33.53 kB / 362.8 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.037e-05/0.09472, allocations: 71.58 kB / 362.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001067/0.09483, allocations: 63.7 kB / 362.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.09486, allocations: 4 kB / 362.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.09498, allocations: 51.91 kB / 362.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.859e-05/0.09506, allocations: 31.84 kB / 363 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.438e-05/0.09515, allocations: 97.17 kB / 363.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.09539, allocations: 199.6 kB / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.0954, allocations: 0 / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.09541, allocations: 0 / 363.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.09542, allocations: 4 kB / 363.3 MB, free: 9.258 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.0006249/0.09605, allocations: 492.2 kB / 363.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.09609, allocations: 12.03 kB / 363.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.09613, allocations: 34.75 kB / 363.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.09618, allocations: 24.66 kB / 363.8 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003347/0.09652, allocations: 270.8 kB / 364.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.09655, allocations: 8.375 kB / 364.1 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.09657, allocations: 7.938 kB / 364.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.09685, allocations: 142.7 kB / 364.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.09686, allocations: 0 / 364.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.09688, allocations: 11.98 kB / 364.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.09689, allocations: 0 / 364.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.841e-05/0.09698, allocations: 35.97 kB / 364.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004647/0.09746, allocations: 358.3 kB / 364.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.09768, allocations: 111.9 kB / 364.7 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.776e-05/0.09776, allocations: 42.56 kB / 364.8 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.455e-05/0.0978, allocations: 8 kB / 364.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.09795, allocations: 75.33 kB / 364.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.09796, allocations: 0 / 364.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003202/0.09829, allocations: 133.4 kB / 365 MB, free: 7.285 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.85e-05/0.09839, allocations: 140.8 kB / 365.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002785/0.09867, allocations: 276.8 kB / 365.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.0987, allocations: 33.64 kB / 365.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.071e-05/0.09878, allocations: 116.1 kB / 365.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.765e-05/0.09882, allocations: 27.8 kB / 365.6 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-05/0.09885, allocations: 17.72 kB / 365.6 MB, free: 6.633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002365/0.09909, allocations: 326.8 kB / 365.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.656e-05/0.09916, allocations: 15.98 kB / 365.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.543e-05/0.09925, allocations: 77.94 kB / 366 MB, free: 6.191 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001205/0.09938, allocations: 76.47 kB / 366.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.09939, allocations: 4.031 kB / 366.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002063/0.0996, allocations: 117.4 kB / 366.2 MB, free: 5.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.09962, allocations: 4 kB / 366.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.09963, allocations: 3.938 kB / 366.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.09965, allocations: 4 kB / 366.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.368e-05/0.09973, allocations: 11.98 kB / 366.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.09974, allocations: 4 kB / 366.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.574e-05/0.09981, allocations: 15.97 kB / 366.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.09983, allocations: 8 kB / 366.2 MB, free: 5.926 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.0001297/0.09996, allocations: 149.7 kB / 366.4 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.398e-05/0.1, allocations: 65.44 kB / 366.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.1001, allocations: 25.7 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1001, allocations: 0 / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.1001, allocations: 4 kB / 366.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.1001, allocations: 3.938 kB / 366.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/0.1004, allocations: 221.6 kB / 366.7 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1004, allocations: 8 kB / 366.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.191e-05/0.1004, allocations: 7.984 kB / 366.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.958e-06/0.1004, allocations: 0 / 366.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.1004, allocations: 8 kB / 366.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1004, allocations: 0 / 366.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1005, allocations: 0 / 366.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002237/0.1007, allocations: 158.4 kB / 366.9 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.1008, allocations: 108.9 kB / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.1008, allocations: 8 kB / 367 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.893e-05/0.1009, allocations: 7.984 kB / 367 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.1009, allocations: 4 kB / 367 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.101, allocations: 8 kB / 367 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000193/0.1012, allocations: 204.5 kB / 367.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1012, allocations: 0 / 367.2 MB, free: 4.844 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.1014, allocations: 31.98 kB / 367.3 MB, free: 4.812 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.001388/0.1028, allocations: 1.011 MB / 368.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001819/0.103, allocations: 71.91 kB / 368.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.103, allocations: 0 / 368.3 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.195e-05/0.1031, allocations: 20 kB / 368.4 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.1035, allocations: 65.64 kB / 368.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002243/0.1057, allocations: 1.991 MB / 370.4 MB, free: 1.648 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.106, allocations: 0.7283 MB / 371.1 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.562e-05/0.1061, allocations: 21.53 kB / 371.2 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.272e-05/0.1061, allocations: 47.42 kB / 371.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1061, allocations: 4 kB / 371.2 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1781/0.2842, allocations: 4.091 MB / 375.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001295/0.2844, allocations: 259.1 kB / 375.5 MB, free: 17.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.958, allocations: 7.594 kB / 375.6 MB, free: 17.92 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