Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 100 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.001603/0.001603, allocations: 180.2 kB / 16.62 MB, free: 6.422 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.58/1.58, allocations: 205.4 MB / 222.8 MB, free: 5.637 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.07309/0.07309, allocations: 12.61 MB / 283.7 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.0007837/0.0007841, allocations: 24 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1118, allocations: 50.38 MB / 394.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample): time 0.002295/0.1141, allocations: 1.236 MB / 396.1 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.115, allocations: 0.5 MB / 396.6 MB, free: 1.051 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.291e-05/0.1151, allocations: 4 kB / 396.6 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.264e-05/0.1151, allocations: 7.938 kB / 396.6 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001232/0.1153, allocations: 11.97 kB / 396.7 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.1155, allocations: 39.84 kB / 396.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.518e-05/0.1156, allocations: 31.89 kB / 396.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.1158, allocations: 16.17 kB / 396.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.124e-05/0.1158, allocations: 15.94 kB / 396.8 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.804e-05/0.1159, allocations: 19.91 kB / 396.8 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.54e-05/0.1159, allocations: 4 kB / 396.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.13e-05/0.1159, allocations: 0 / 396.8 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.647e-05/0.116, allocations: 15.92 kB / 396.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.116, allocations: 37.64 kB / 396.8 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.218e-05/0.1161, allocations: 27.94 kB / 396.9 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1161, allocations: 0 / 396.9 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1161, allocations: 4 kB / 396.9 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.968e-06/0.1161, allocations: 0 / 396.9 MB, free: 0.8125 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005028/0.1166, allocations: 383.2 kB / 397.2 MB, free: 400 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.1167, allocations: 8.031 kB / 397.2 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.57e-05/0.1167, allocations: 7.906 kB / 397.3 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.1169, allocations: 190.8 kB / 397.4 MB, free: 152 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.171e-05/0.1169, allocations: 4 kB / 397.4 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.117, allocations: 11.91 kB / 397.5 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.1172, allocations: 109 kB / 397.6 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1173, allocations: 0 / 397.6 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.1173, allocations: 4 kB / 397.6 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.1173, allocations: 0 / 397.6 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.518e-05/0.1174, allocations: 20.05 kB / 397.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003347/0.1177, allocations: 265.7 kB / 397.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.735e-05/0.1178, allocations: 53.08 kB / 397.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.596e-05/0.1179, allocations: 0 / 397.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.1179, allocations: 34.56 kB / 397.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.1179, allocations: 0 / 397.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002511/0.1182, allocations: 77.58 kB / 398 MB, free: 15.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.1182, allocations: 85.05 kB / 398.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1184, allocations: 145.5 kB / 398.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.1184, allocations: 25.95 kB / 398.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.971e-05/0.1185, allocations: 92.14 kB / 398.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.334e-05/0.1185, allocations: 7.906 kB / 398.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-06/0.1185, allocations: 0 / 398.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1186, allocations: 314.8 kB / 398.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.219e-05/0.1187, allocations: 12 kB / 398.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.059e-05/0.1187, allocations: 25.7 kB / 398.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.957e-05/0.1188, allocations: 8 kB / 398.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1188, allocations: 0 / 398.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001147/0.1189, allocations: 57.62 kB / 398.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1189, allocations: 9.188 kB / 398.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1189, allocations: 8.109 kB / 398.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.1189, allocations: 4 kB / 398.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.562e-05/0.119, allocations: 4 kB / 398.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.119, allocations: 0 / 398.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.801e-05/0.1191, allocations: 11.95 kB / 398.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.1191, allocations: 0 / 398.8 MB, free: 14.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.117e-05/0.1192, allocations: 121.6 kB / 398.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.876e-05/0.1192, allocations: 41.55 kB / 399 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.1193, allocations: 15.89 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1193, allocations: 0 / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1193, allocations: 4 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1193, allocations: 0 / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.1195, allocations: 173.6 kB / 399.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1195, allocations: 0 / 399.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.737e-05/0.1196, allocations: 8 kB / 399.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1196, allocations: 0 / 399.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.1196, allocations: 0 / 399.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1196, allocations: 0 / 399.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1196, allocations: 0 / 399.2 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/0.1198, allocations: 182 kB / 399.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.1199, allocations: 93 kB / 399.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.1199, allocations: 3.938 kB / 399.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.488e-05/0.12, allocations: 8.031 kB / 399.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/0.12, allocations: 7.984 kB / 399.4 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.12, allocations: 7.938 kB / 399.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.417e-05/0.1201, allocations: 107.2 kB / 399.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1201, allocations: 0 / 399.6 MB, free: 13.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002136/0.1203, allocations: 4 kB / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 9.755e-05/0.1204, allocations: 99.23 kB / 399.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001312/0.1206, allocations: 27.98 kB / 399.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1206, allocations: 0 / 399.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.87e-05/0.1206, allocations: 11.94 kB / 399.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.121, allocations: 25.22 kB / 399.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.1213, allocations: 181.8 kB / 399.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.1216, allocations: 0.6965 MB / 400.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.392e-05/0.1216, allocations: 4 kB / 400.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.407e-05/0.1216, allocations: 7.438 kB / 400.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1217, allocations: 4 kB / 400.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.002538/0.1242, allocations: 0.5067 MB / 401.1 MB, free: 12.14 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample.resolution,shiftSample.shiftCounter,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time