Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 95.89 kB / 15.73 MB, free: 440 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.001548/0.001548, allocations: 175 kB / 16.61 MB, free: 6.426 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.538/1.538, allocations: 205.4 MB / 222.8 MB, free: 5.656 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.07499/0.07499, allocations: 12.6 MB / 283.6 MB, free: 8.699 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.000765/0.0007651, allocations: 24 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1029, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.002289/0.1052, allocations: 1.553 MB / 396.4 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1068, allocations: 0.9953 MB / 397.4 MB, free: 224 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1069, allocations: 4 kB / 397.4 MB, free: 220 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002993/0.1072, allocations: 55.8 kB / 397.5 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.1074, allocations: 83.69 kB / 397.6 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005989/0.108, allocations: 203.5 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000178/0.1082, allocations: 103.8 kB / 397.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.1083, allocations: 33.55 kB / 397.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.49e-05/0.1084, allocations: 63.73 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.1086, allocations: 67.69 kB / 398 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.1086, allocations: 4 kB / 398 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.1087, allocations: 35.92 kB / 398.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.813e-05/0.1088, allocations: 55.81 kB / 398.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.134e-05/0.1088, allocations: 57.58 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.1091, allocations: 171.9 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1091, allocations: 0 / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1091, allocations: 0 / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.697e-06/0.1091, allocations: 3.938 kB / 398.4 MB, free: 15.29 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.0007011/0.1098, allocations: 0.5116 MB / 398.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1098, allocations: 8.031 kB / 398.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.1099, allocations: 27.62 kB / 398.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.1103, allocations: 286.5 kB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.1103, allocations: 0 / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.117e-05/0.1103, allocations: 12 kB / 399.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003723/0.1107, allocations: 180.2 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.1107, allocations: 4 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.1108, allocations: 4 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1108, allocations: 0 / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.1109, allocations: 43.91 kB / 399.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.1114, allocations: 403.1 kB / 399.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.1117, allocations: 138.5 kB / 400 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.1117, allocations: 8.125 kB / 400 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.1119, allocations: 75.31 kB / 400 MB, free: 13.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.492e-06/0.112, allocations: 4 kB / 400 MB, free: 13.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004022/0.1124, allocations: 169.6 kB / 400.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.539e-05/0.1125, allocations: 188 kB / 400.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003345/0.1128, allocations: 338.5 kB / 400.7 MB, free: 12.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1128, allocations: 33.7 kB / 400.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.893e-05/0.1129, allocations: 124.4 kB / 400.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/0.113, allocations: 19.73 kB / 400.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.113, allocations: 7.938 kB / 400.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.1131, allocations: 334.8 kB / 401.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.783e-05/0.1132, allocations: 27.98 kB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001169/0.1133, allocations: 96.52 kB / 401.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.053e-05/0.1134, allocations: 35.98 kB / 401.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.1134, allocations: 0 / 401.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002351/0.1137, allocations: 137.3 kB / 401.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1137, allocations: 8 kB / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1137, allocations: 0 / 401.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1137, allocations: 8.188 kB / 401.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.1139, allocations: 24.3 kB / 401.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.1139, allocations: 7.984 kB / 401.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.87e-05/0.114, allocations: 11.86 kB / 401.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.114, allocations: 8 kB / 401.6 MB, free: 11.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.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.0001314/0.1141, allocations: 169.5 kB / 401.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.1142, allocations: 77.34 kB / 401.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.32e-05/0.1143, allocations: 29.81 kB / 401.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.1143, allocations: 7.984 kB / 401.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.1143, allocations: 3.938 kB / 401.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1143, allocations: 0 / 401.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.1145, allocations: 245.5 kB / 402.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1146, allocations: 0 / 402.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.216e-05/0.1146, allocations: 15.98 kB / 402.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.1146, allocations: 0 / 402.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.1147, allocations: 8 kB / 402.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.1147, allocations: 7.922 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1147, allocations: 8 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.115, allocations: 208.4 kB / 402.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.1151, allocations: 120.8 kB / 402.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.1151, allocations: 11.95 kB / 402.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.931e-05/0.1152, allocations: 4 kB / 402.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.1153, allocations: 11.98 kB / 402.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.1153, allocations: 4 kB / 402.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002241/0.1155, allocations: 245.9 kB / 402.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1155, allocations: 0 / 402.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002635/0.1158, allocations: 32 kB / 402.8 MB, free: 10.39 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,backSample1.y,shiftSample1.y,backSample1.u,sample.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 (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.0009039/0.1167, allocations: 439.8 kB / 403.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000216/0.1169, allocations: 79.89 kB / 403.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1169, allocations: 0 / 403.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.166e-05/0.117, allocations: 31.92 kB / 403.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1174, allocations: 78.09 kB / 403.4 MB, free: 9.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005856/0.118, allocations: 417.4 kB / 403.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.1183, allocations: 0.7518 MB / 404.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.192e-05/0.1184, allocations: 21.55 kB / 404.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.741e-05/0.1185, allocations: 27.42 kB / 404.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1185, allocations: 0 / 404.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of Templates: time 0.005918/0.1244, allocations: 2.79 MB / 407.4 MB, free: 5.707 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,backSample1.y,sample.y,shiftSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.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