Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 101.1 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 179.5 kB / 16.61 MB, free: 6.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.4 MB / 222.8 MB, free: 5.41 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08828/0.08828, allocations: 12.59 MB / 283.6 MB, free: 8.559 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006787/0.0006788, allocations: 20 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09171/0.0924, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.002263/0.09471, allocations: 1.569 MB / 396.5 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001517/0.09625, allocations: 0.9642 MB / 397.4 MB, free: 240 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.09639, allocations: 7.938 kB / 397.4 MB, free: 232 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002773/0.09668, allocations: 55.78 kB / 397.5 MB, free: 176 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.0969, allocations: 79.77 kB / 397.6 MB, free: 96 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006234/0.09753, allocations: 199.5 kB / 397.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.09772, allocations: 107.8 kB / 397.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.09784, allocations: 33.53 kB / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.936e-05/0.09794, allocations: 59.77 kB / 398 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.09805, allocations: 63.69 kB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.557e-05/0.09807, allocations: 0 / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.09819, allocations: 47.91 kB / 398.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.09827, allocations: 43.83 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.864e-05/0.09832, allocations: 53.58 kB / 398.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.09855, allocations: 175.9 kB / 398.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.09856, allocations: 3.938 kB / 398.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09857, allocations: 0 / 398.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.09858, allocations: 4 kB / 398.3 MB, free: 15.31 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.000704/0.09929, allocations: 0.5038 MB / 398.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.09933, allocations: 8.031 kB / 398.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.097e-05/0.0994, allocations: 23.72 kB / 398.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.09979, allocations: 274.5 kB / 399.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.09982, allocations: 8 kB / 399.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.09985, allocations: 11.94 kB / 399.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003572/0.1002, allocations: 180.2 kB / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1002, allocations: 0 / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1003, allocations: 8 kB / 399.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.1003, allocations: 4 kB / 399.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.1004, allocations: 35.92 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006095/0.101, allocations: 478.5 kB / 399.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002534/0.1013, allocations: 142.5 kB / 400 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.1013, allocations: 4 kB / 400 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002425/0.1016, allocations: 101.2 kB / 400.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.1016, allocations: 0 / 400.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003862/0.102, allocations: 161.3 kB / 400.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1021, allocations: 191.8 kB / 400.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003327/0.1024, allocations: 335 kB / 400.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.046e-05/0.1025, allocations: 29.7 kB / 400.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.1026, allocations: 128.4 kB / 400.9 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.581e-05/0.1026, allocations: 19.73 kB / 400.9 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.803e-06/0.1026, allocations: 4 kB / 400.9 MB, free: 12.39 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1027, allocations: 326.8 kB / 401.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.297e-05/0.1028, allocations: 31.98 kB / 401.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001073/0.1029, allocations: 91.7 kB / 401.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.279e-05/0.103, allocations: 39.92 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.103, allocations: 0 / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002337/0.1033, allocations: 141.3 kB / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1033, allocations: 4 kB / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1033, allocations: 4.047 kB / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.1033, allocations: 3.984 kB / 401.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.1035, allocations: 23.98 kB / 401.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.1035, allocations: 3.938 kB / 401.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.975e-05/0.1036, allocations: 19.78 kB / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.1036, allocations: 4.156 kB / 401.6 MB, free: 11.67 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.1038, allocations: 161.6 kB / 401.8 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.19e-05/0.1039, allocations: 69.44 kB / 401.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.1039, allocations: 33.64 kB / 401.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1039, allocations: 4 kB / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1039, allocations: 0 / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.104, allocations: 0 / 401.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.1042, allocations: 257.7 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1042, allocations: 4.062 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.909e-05/0.1043, allocations: 16 kB / 402.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1043, allocations: 0 / 402.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.1043, allocations: 7.984 kB / 402.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1043, allocations: 3.938 kB / 402.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1043, allocations: 4 kB / 402.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002838/0.1046, allocations: 220.4 kB / 402.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.1047, allocations: 116.8 kB / 402.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.1048, allocations: 11.95 kB / 402.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.778e-05/0.1048, allocations: 7.984 kB / 402.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.1049, allocations: 4 kB / 402.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.1049, allocations: 15.98 kB / 402.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002218/0.1052, allocations: 233.9 kB / 402.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1052, allocations: 7.938 kB / 402.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002731/0.1054, allocations: 31.98 kB / 402.8 MB, free: 10.36 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,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009201/0.1064, allocations: 424.9 kB / 403.2 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.1066, allocations: 80.14 kB / 403.3 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1066, allocations: 8 kB / 403.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.779e-05/0.1067, allocations: 39.92 kB / 403.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003439/0.1071, allocations: 69.12 kB / 403.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006167/0.1077, allocations: 413.4 kB / 403.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.108, allocations: 0.7479 MB / 404.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.304e-05/0.1081, allocations: 25.53 kB / 404.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.794e-05/0.1082, allocations: 23.42 kB / 404.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1082, allocations: 4 kB / 404.6 MB, free: 8.48 MB / 302.1 MB Notification: Performance of Templates: time 0.006277/0.1145, allocations: 2.677 MB / 407.3 MB, free: 5.797 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_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.extrapolation,table.n,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],time