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.001309/0.001309, 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.001382/0.001382, 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.235/1.235, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 55.97 kB / 306.4 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08069/0.08209, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003082/0.0852, allocations: 1.977 MB / 358.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.08712, allocations: 1.286 MB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.08725, allocations: 11.94 kB / 360.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002659/0.08754, allocations: 59.78 kB / 360.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.08784, allocations: 115.6 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005623/0.08841, allocations: 195.6 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.08862, allocations: 171.5 kB / 360.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.08873, allocations: 41.5 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.08884, allocations: 67.64 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.08896, allocations: 91.55 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.08898, allocations: 4 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001283/0.08912, allocations: 47.97 kB / 360.9 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.08921, allocations: 47.83 kB / 361 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.614e-05/0.08929, allocations: 83.41 kB / 361.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002776/0.08958, allocations: 243.4 kB / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.08959, allocations: 0 / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.08959, allocations: 0 / 361.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.08961, allocations: 4 kB / 361.3 MB, free: 9.758 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.0006527/0.09026, allocations: 0.5389 MB / 361.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.09031, allocations: 12.03 kB / 361.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.5e-05/0.09035, allocations: 34.75 kB / 361.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.747e-05/0.09042, allocations: 28.66 kB / 361.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.09073, allocations: 295.5 kB / 362.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.09075, allocations: 4.375 kB / 362.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.022e-05/0.09078, allocations: 11.94 kB / 362.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.09111, allocations: 184.3 kB / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.09113, allocations: 0 / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.09115, allocations: 0 / 362.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.09116, allocations: 4 kB / 362.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001135/0.09128, allocations: 39.92 kB / 362.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000514/0.0918, allocations: 474.5 kB / 362.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002436/0.09205, allocations: 138.5 kB / 363 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.09216, allocations: 67.36 kB / 363.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.0922, allocations: 4 kB / 363.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.0924, allocations: 97.16 kB / 363.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.09241, allocations: 0 / 363.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003925/0.09281, allocations: 169.2 kB / 363.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.09291, allocations: 195.8 kB / 363.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.09323, allocations: 342.8 kB / 363.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.09327, allocations: 30.08 kB / 363.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.094e-05/0.09336, allocations: 132.4 kB / 364.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.09339, allocations: 19.75 kB / 364.1 MB, free: 6.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.263e-05/0.09344, allocations: 33.7 kB / 364.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.09356, allocations: 338.8 kB / 364.4 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.158e-05/0.09364, allocations: 27.92 kB / 364.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.09376, allocations: 95.7 kB / 364.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.09392, allocations: 97.02 kB / 364.7 MB, free: 6.012 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.09394, allocations: 4 kB / 364.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002396/0.09418, allocations: 137.3 kB / 364.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.0942, allocations: 4 kB / 364.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.09421, allocations: 3.984 kB / 364.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.819e-06/0.09423, allocations: 4 kB / 364.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.09434, allocations: 16.31 kB / 364.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.09435, allocations: 7.984 kB / 364.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.902e-05/0.09444, allocations: 16 kB / 364.8 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.09446, allocations: 12 kB / 364.9 MB, free: 5.805 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.0001304/0.09459, allocations: 154.8 kB / 365 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.776e-05/0.09469, allocations: 77.34 kB / 365.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.267e-05/0.09475, allocations: 29.73 kB / 365.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.09476, allocations: 7.938 kB / 365.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.09476, allocations: 0 / 365.1 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.09477, allocations: 3.984 kB / 365.1 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002094/0.09499, allocations: 257.5 kB / 365.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.095, allocations: 0 / 365.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.874e-05/0.09508, allocations: 15.98 kB / 365.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.654e-06/0.09509, allocations: 0 / 365.4 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.09511, allocations: 4 kB / 365.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.09512, allocations: 0 / 365.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.09512, allocations: 4 kB / 365.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.09538, allocations: 183.3 kB / 365.6 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.0955, allocations: 116.8 kB / 365.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.09553, allocations: 4 kB / 365.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.143e-05/0.09561, allocations: 11.98 kB / 365.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.587e-05/0.09566, allocations: 11.92 kB / 365.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.09569, allocations: 7.938 kB / 365.7 MB, free: 4.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.09591, allocations: 249.9 kB / 366 MB, free: 4.574 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09592, allocations: 4 kB / 366 MB, free: 4.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002545/0.09618, allocations: 39.98 kB / 366 MB, free: 4.531 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.001291/0.09748, allocations: 1.041 MB / 367.1 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002156/0.09771, allocations: 83.84 kB / 367.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.09772, allocations: 0 / 367.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.829e-05/0.09781, allocations: 35.97 kB / 367.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.09819, allocations: 65.23 kB / 367.2 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00241/0.1006, allocations: 2.33 MB / 369.6 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1009, allocations: 0.7401 MB / 370.3 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.996e-05/0.101, allocations: 29.78 kB / 370.3 MB, free: 168 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.873e-05/0.1011, allocations: 59.42 kB / 370.4 MB, free: 112 kB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1011, allocations: 4 kB / 370.4 MB, free: 108 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.533/2.634, allocations: 5.143 MB / 375.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002215/2.634, allocations: 251.3 kB / 375.8 MB, free: 18.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.422/5.056, allocations: 0 / 375.8 MB, free: 18.86 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