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.0008473/0.0008473, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 206.3 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.218/1.218, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001988/0.000199, allocations: 4 kB / 307.8 MB, free: 0.6992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07959/0.0798, allocations: 51.52 MB / 359.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.00206/0.0819, allocations: 1.614 MB / 361 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001848/0.08377, allocations: 1.263 MB / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.08391, allocations: 3.938 kB / 362.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.08419, allocations: 63.73 kB / 362.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002882/0.08449, allocations: 111.6 kB / 362.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005649/0.08506, allocations: 203.5 kB / 362.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.08528, allocations: 175.5 kB / 362.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.08539, allocations: 29.55 kB / 362.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.0855, allocations: 67.62 kB / 362.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.08561, allocations: 79.62 kB / 363 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.948e-05/0.08564, allocations: 4 kB / 363 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.08578, allocations: 51.97 kB / 363 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.08587, allocations: 47.77 kB / 363.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.429e-05/0.08596, allocations: 109.1 kB / 363.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.08623, allocations: 231.5 kB / 363.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.08624, allocations: 0 / 363.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.08625, allocations: 0 / 363.4 MB, free: 9.117 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.08626, allocations: 0 / 363.4 MB, free: 9.117 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.0005992/0.08686, allocations: 0.5078 MB / 363.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.0869, allocations: 12.03 kB / 363.9 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.08696, allocations: 46.69 kB / 364 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.903e-05/0.08701, allocations: 24.66 kB / 364 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.08732, allocations: 283.6 kB / 364.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.08735, allocations: 4.375 kB / 364.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.08737, allocations: 15.92 kB / 364.3 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.0877, allocations: 182.8 kB / 364.5 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.08772, allocations: 3.984 kB / 364.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.08773, allocations: 0 / 364.5 MB, free: 7.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.08775, allocations: 4 kB / 364.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001136/0.08786, allocations: 43.91 kB / 364.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005116/0.08838, allocations: 474.5 kB / 365 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.08863, allocations: 146.5 kB / 365.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.726e-05/0.08874, allocations: 55.42 kB / 365.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.08877, allocations: 7.984 kB / 365.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.08896, allocations: 97.03 kB / 365.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.08897, allocations: 0 / 365.3 MB, free: 6.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004276/0.08941, allocations: 169.2 kB / 365.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.08954, allocations: 188.3 kB / 365.6 MB, free: 6.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003732/0.08992, allocations: 342.9 kB / 366 MB, free: 6.238 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.08996, allocations: 29.7 kB / 366 MB, free: 6.203 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.09005, allocations: 136.3 kB / 366.1 MB, free: 6.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.09008, allocations: 19.75 kB / 366.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.09012, allocations: 21.7 kB / 366.2 MB, free: 6.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.09025, allocations: 338.8 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.145e-05/0.09032, allocations: 23.98 kB / 366.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.09044, allocations: 99.59 kB / 366.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002196/0.09067, allocations: 101.1 kB / 366.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09068, allocations: 0 / 366.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002423/0.09093, allocations: 133.4 kB / 366.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.09097, allocations: 4 kB / 366.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.09098, allocations: 4 kB / 366.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.09099, allocations: 0 / 366.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.0911, allocations: 19.98 kB / 366.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.09112, allocations: 8.094 kB / 366.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.441e-05/0.09121, allocations: 19.83 kB / 366.9 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.09123, allocations: 4.312 kB / 366.9 MB, free: 5.215 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.0001327/0.09137, allocations: 162.9 kB / 367.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.191e-05/0.09147, allocations: 73.34 kB / 367.1 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.204e-05/0.09153, allocations: 29.73 kB / 367.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.09154, allocations: 7.938 kB / 367.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.09155, allocations: 64 / 367.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.09156, allocations: 7.938 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002142/0.09178, allocations: 249.6 kB / 367.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.09179, allocations: 0 / 367.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-05/0.09186, allocations: 19.98 kB / 367.4 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.09187, allocations: 4 kB / 367.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.09189, allocations: 0 / 367.4 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.0919, allocations: 4 kB / 367.4 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.0919, allocations: 3.938 kB / 367.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.09218, allocations: 179.3 kB / 367.6 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.09229, allocations: 120.8 kB / 367.7 MB, free: 4.254 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.09233, allocations: 7.984 kB / 367.7 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.891e-05/0.0924, allocations: 4 kB / 367.8 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.09246, allocations: 11.92 kB / 367.8 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.731e-05/0.09249, allocations: 15.94 kB / 367.8 MB, free: 4.215 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002314/0.09272, allocations: 249.9 kB / 368 MB, free: 3.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.09273, allocations: 0 / 368 MB, free: 3.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.09301, allocations: 39.94 kB / 368.1 MB, free: 3.934 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.001346/0.09436, allocations: 1.032 MB / 369.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002191/0.09459, allocations: 87.83 kB / 369.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.09461, allocations: 0 / 369.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.76e-05/0.0947, allocations: 35.98 kB / 369.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.09513, allocations: 73.12 kB / 369.3 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.09757, allocations: 2.332 MB / 371.6 MB, free: 364 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1427/0.2403, allocations: 0.7382 MB / 372.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001519/0.2405, allocations: 28.5 kB / 372.4 MB, free: 18.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.2406, allocations: 62.05 kB / 372.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.2406, allocations: 2.969 kB / 372.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01776/0.2584, allocations: 4.939 MB / 377.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/0.2586, allocations: 257.8 kB / 377.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/2.038, allocations: 0 / 377.6 MB, free: 18.05 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