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.0008626/0.0008626, allocations: 93.16 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 199.4 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.8 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002187, allocations: 8 kB / 307.8 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08102/0.08126, allocations: 51.52 MB / 359.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.002031/0.08332, allocations: 1.599 MB / 361 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.08512, allocations: 1.224 MB / 362.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.08525, allocations: 11.94 kB / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002841/0.08554, allocations: 59.8 kB / 362.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.08583, allocations: 111.6 kB / 362.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005692/0.08641, allocations: 199.3 kB / 362.6 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000209/0.08663, allocations: 171.5 kB / 362.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.08674, allocations: 29.53 kB / 362.8 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.08685, allocations: 67.64 kB / 362.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.08696, allocations: 67.69 kB / 362.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.992e-05/0.08699, allocations: 4 kB / 362.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.08712, allocations: 55.91 kB / 362.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.235e-05/0.0872, allocations: 51.77 kB / 363 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.814e-05/0.08729, allocations: 97.19 kB / 363.1 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002507/0.08754, allocations: 227.5 kB / 363.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.08756, allocations: 0 / 363.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.08757, allocations: 0 / 363.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.08758, allocations: 0 / 363.3 MB, free: 9.227 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.0005855/0.08817, allocations: 0.504 MB / 363.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.08821, allocations: 12.03 kB / 363.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.741e-05/0.08825, allocations: 34.75 kB / 363.9 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.906e-05/0.08831, allocations: 28.59 kB / 363.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.08861, allocations: 291.5 kB / 364.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.08864, allocations: 8.375 kB / 364.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.889e-05/0.08866, allocations: 11.92 kB / 364.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.08895, allocations: 151.5 kB / 364.3 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.08897, allocations: 4 kB / 364.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.08899, allocations: 7.984 kB / 364.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.089, allocations: 0 / 364.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.08911, allocations: 35.92 kB / 364.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000458/0.08957, allocations: 386.4 kB / 364.8 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.0898, allocations: 123.9 kB / 364.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.173e-05/0.0899, allocations: 50.5 kB / 364.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.08993, allocations: 4 kB / 364.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001687/0.0901, allocations: 83.31 kB / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.532e-06/0.09011, allocations: 0 / 365 MB, free: 7.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003396/0.09046, allocations: 145.5 kB / 365.2 MB, free: 7.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.09054, allocations: 170.4 kB / 365.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.09086, allocations: 342.5 kB / 365.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.09089, allocations: 25.7 kB / 365.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.527e-05/0.09097, allocations: 128.1 kB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.67e-05/0.091, allocations: 19.8 kB / 365.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.09103, allocations: 17.72 kB / 365.8 MB, free: 6.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.793e-05/0.09114, allocations: 330.8 kB / 366.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.315e-05/0.09122, allocations: 27.92 kB / 366.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.803e-05/0.09132, allocations: 86.86 kB / 366.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.09147, allocations: 92.27 kB / 366.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.09148, allocations: 0 / 366.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002152/0.0917, allocations: 121.4 kB / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.09173, allocations: 4 kB / 366.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.09173, allocations: 0 / 366.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.09175, allocations: 4 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.453e-05/0.09185, allocations: 15.98 kB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.435e-06/0.09187, allocations: 7.938 kB / 366.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.726e-05/0.09195, allocations: 19.97 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.09197, allocations: 4 kB / 366.5 MB, free: 5.629 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.0001236/0.0921, allocations: 161.7 kB / 366.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.573e-05/0.09218, allocations: 69.36 kB / 366.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.09223, allocations: 25.7 kB / 366.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.09224, allocations: 0 / 366.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.09225, allocations: 0 / 366.8 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.09226, allocations: 11.92 kB / 366.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00018/0.09245, allocations: 241.6 kB / 367 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.09246, allocations: 0 / 367 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.09252, allocations: 11.98 kB / 367.1 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.09253, allocations: 4 kB / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.09255, allocations: 0 / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.09255, allocations: 0 / 367.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.09256, allocations: 4 kB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.09281, allocations: 170.3 kB / 367.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.261e-05/0.09291, allocations: 120.8 kB / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.09295, allocations: 8.062 kB / 367.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.573e-05/0.09302, allocations: 4 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/0.09308, allocations: 11.92 kB / 367.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.0931, allocations: 7.938 kB / 367.4 MB, free: 4.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002168/0.09332, allocations: 253.9 kB / 367.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09333, allocations: 4 kB / 367.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002554/0.09359, allocations: 32 kB / 367.7 MB, free: 4.406 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.001243/0.09484, allocations: 1.008 MB / 368.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.09505, allocations: 71.91 kB / 368.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09506, allocations: 0 / 368.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.335e-05/0.09514, allocations: 31.92 kB / 368.8 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003868/0.09553, allocations: 72.06 kB / 368.8 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.09781, allocations: 2.249 MB / 371.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.09811, allocations: 0.7438 MB / 371.8 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.394e-05/0.0982, allocations: 29.53 kB / 371.9 MB, free: 172 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.878e-05/0.0983, allocations: 63.34 kB / 371.9 MB, free: 108 kB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.0983, allocations: 0 / 371.9 MB, free: 108 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1597/0.258, allocations: 4.766 MB / 376.7 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001507/0.2582, allocations: 250.4 kB / 376.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.111, allocations: 3.75 kB / 376.9 MB, free: 18.14 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