Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001062, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001153/0.001153, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 64.27 kB / 307.1 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09525, allocations: 50.53 MB / 357.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003832/0.09912, allocations: 1.904 MB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.1014, allocations: 1.305 MB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.1016, allocations: 7.938 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003258/0.102, allocations: 63.67 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004623/0.1024, allocations: 135.4 kB / 361 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.1032, allocations: 227.1 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003189/0.1035, allocations: 183.5 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.1037, allocations: 37.53 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.1039, allocations: 83.69 kB / 361.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001675/0.104, allocations: 87.56 kB / 361.6 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.234e-05/0.1041, allocations: 8 kB / 361.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.1043, allocations: 67.95 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.509e-05/0.1044, allocations: 51.83 kB / 361.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1045, allocations: 87.34 kB / 361.8 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.1049, allocations: 239.5 kB / 362 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1049, allocations: 0 / 362 MB, free: 9.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1049, allocations: 4 kB / 362.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1049, allocations: 0 / 362.1 MB, free: 9.477 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007877/0.1057, allocations: 0.5428 MB / 362.6 MB, free: 8.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.1058, allocations: 12.03 kB / 362.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.837e-05/0.1058, allocations: 38.73 kB / 362.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.1059, allocations: 24.66 kB / 362.7 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.1063, allocations: 287.6 kB / 362.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.1063, allocations: 4.375 kB / 363 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.978e-05/0.1063, allocations: 11.94 kB / 363 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003731/0.1067, allocations: 186.9 kB / 363.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.1067, allocations: 3.938 kB / 363.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.1068, allocations: 4 kB / 363.2 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1068, allocations: 4 kB / 363.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.1069, allocations: 43.91 kB / 363.2 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005742/0.1075, allocations: 470.5 kB / 363.7 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002718/0.1078, allocations: 146.5 kB / 363.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.1079, allocations: 63.41 kB / 363.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.1079, allocations: 4 kB / 363.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.1082, allocations: 97.09 kB / 364 MB, free: 7.305 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.453e-06/0.1082, allocations: 0 / 364 MB, free: 7.305 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004149/0.1086, allocations: 165.6 kB / 364.1 MB, free: 7.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.208e-05/0.1087, allocations: 195.9 kB / 364.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.1091, allocations: 346.8 kB / 364.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.1091, allocations: 29.7 kB / 364.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.219e-05/0.1092, allocations: 124.4 kB / 364.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.1092, allocations: 23.73 kB / 364.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.1093, allocations: 33.7 kB / 364.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1094, allocations: 334.8 kB / 365.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.583e-05/0.1095, allocations: 27.98 kB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1096, allocations: 91.7 kB / 365.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.1098, allocations: 105 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1098, allocations: 256 / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002582/0.1101, allocations: 145.2 kB / 365.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1101, allocations: 4 kB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1102, allocations: 8.156 kB / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1102, allocations: 0 / 365.6 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.1103, allocations: 19.98 kB / 365.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.974e-06/0.1103, allocations: 4 kB / 365.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.924e-05/0.1104, allocations: 11.84 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.1104, allocations: 4 kB / 365.6 MB, free: 5.523 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001719/0.1106, allocations: 166.8 kB / 365.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1107, allocations: 81.38 kB / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.389e-05/0.1108, allocations: 33.67 kB / 365.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1108, allocations: 4 kB / 365.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1108, allocations: 0 / 365.9 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.1109, allocations: 3.938 kB / 365.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002626/0.1111, allocations: 245.5 kB / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1111, allocations: 0 / 366.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.1112, allocations: 16 kB / 366.1 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1112, allocations: 7.984 kB / 366.1 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.326e-05/0.1113, allocations: 3.938 kB / 366.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1113, allocations: 4 kB / 366.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1113, allocations: 4.031 kB / 366.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003272/0.1116, allocations: 179.3 kB / 366.3 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.1117, allocations: 116.8 kB / 366.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.1118, allocations: 4 kB / 366.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.433e-05/0.1119, allocations: 8 kB / 366.5 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.081e-05/0.1119, allocations: 19.86 kB / 366.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.112, allocations: 4 kB / 366.5 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002997/0.1123, allocations: 253.9 kB / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1123, allocations: 0 / 366.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003674/0.1127, allocations: 36 kB / 366.8 MB, free: 4.242 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001748/0.1144, allocations: 1.029 MB / 367.8 MB, free: 3.316 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000287/0.1147, allocations: 88.08 kB / 367.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.1147, allocations: 4.062 kB / 367.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.1149, allocations: 39.92 kB / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/0.1153, allocations: 77.58 kB / 368 MB, free: 3.117 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.118, allocations: 2.285 MB / 370.3 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1306/0.2486, allocations: 0.7423 MB / 371 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.2488, allocations: 29.77 kB / 371.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.2489, allocations: 65.34 kB / 371.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2489, allocations: 3.828 kB / 371.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05984/0.3087, allocations: 5.375 MB / 376.5 MB, free: 19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.147/8.456, allocations: 9.234 kB / 376.5 MB, free: 19 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.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